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

Author Message
wrighty08
[View user's profile]

Joined: 2006-06-05
Posts: 1
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License