Hi,
This may well be an easy one but:
I have some VB code that tests the age of a file I want to FTP from a remote server. If the file is less than 1 hour 15 minutes old then I carry on with the FTP.
If the file is > 1hr 15 then I wait for 1 minute then try again. I wait for upto 10 minutes before stopping and raising an error if the file is not the correct age.
Is there a simple way of doing the same as my VB code but in DTS ? I basically want the same thing as my VB code but want one part of the DTS package to test the age of the remote file (i have the host IP address, and a username and password).
At the moment I use a batch file to get the file details from the host e.g:
open xxx.x.x.x
username
password
cd someFolder
mdir file.csv C:\Data\file.txt
y
quit
This is possible in DTS?
Regards,
MrPeds
This may well be an easy one but:
I have some VB code that tests the age of a file I want to FTP from a remote server. If the file is less than 1 hour 15 minutes old then I carry on with the FTP.
If the file is > 1hr 15 then I wait for 1 minute then try again. I wait for upto 10 minutes before stopping and raising an error if the file is not the correct age.
Is there a simple way of doing the same as my VB code but in DTS ? I basically want the same thing as my VB code but want one part of the DTS package to test the age of the remote file (i have the host IP address, and a username and password).
At the moment I use a batch file to get the file details from the host e.g:
open xxx.x.x.x
username
password
cd someFolder
mdir file.csv C:\Data\file.txt
y
quit
This is possible in DTS?
Regards,
MrPeds