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

Author Message
[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


[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27084
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

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License