Polling for Files on an FTP Server (Check if a file exists)

Advertisement

wrighty08
Joined:
Posts:
1

Polling for Files on an FTP Server (Check if a file exists)

I need some help with incorporating a check to see if a file exists before it is downloaded.

I am using batch files which are then automated

I need to check if a file exists before I download it and if not then wait for a period of time and then try again. I tried If Exist but Winscp did not seem to like this

any help would be much appreciated

thanks

Alex

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Polling for Files on an FTP Server (Check if a file exists)

WinSCP does not have such functionality. But you can just try to download the file and if that fails, wait for some time. You can check the script failure from the WinSCP exit code.

Reply with quote

Advertisement

You can post new topics in this forum