hi frineds i was checked the file exist in a dir or not it's working file
if file not exist i want to create a file and directory with the bellow condition
i was placed the file system object for dir and file it working fine indepenedent but now
we have to club with file check condition and if not exist we have to create how please tell me
If System.IO.File.Exists((CStr(Dts.Variables("ProductBuyListFileLocation").Value) + (CStr(Dts.Variables("ProductBuyListFileName").Value)))) Then
Dts.Variables("FileFound").Value = 1'MsgBox("FILE FOUND")
Else
Dts.Variables("FileFound").Value = 0'MsgBox("FILE NOT FOUND")
End If
regards
koti
Cool i got it
koti
No comments:
Post a Comment