April 5, 2006 at 6:39 am
Could someone suggest me a way (other than writing a script) to check before downloading a file from FTP server whether it already exists in the destination folder or not. In case it already exists, I wish to skip the FTP task and jump to some other task.
Dharam
April 5, 2006 at 7:36 am
Hi Dharam,
I had to deal with the same problem when checking for file existence before processing an interface. Though it was ugly, I used the "Set Attributes" operation (leaving the defaults) of the File System Task and then trapped the error if the file was not found.
I also used a script task with FSO in another scenario.
I'm very suprised Microsoft didn't include an "If Exists" operation with the File System Task.
April 5, 2006 at 10:45 pm
Hi Gradley,
Thanks for the reply!!
Could you please be a bit more descriptive in how you accomplished the task using "Set Attributes" operation (leaving the defaults) of the File System Task. I was also wondering if i could use the same for verifying whether the files on the FTP Server have already been downloaded or not.
Dharam
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply