Topic "Can you check if folder is empty?"

Author Message
[View user's profile]

Joined: 2008-06-25
Posts: 2
Bear with me I'm a beginner and it's my 1st post...

I have created a script that downloads file to a specific folder on my local.

I've also scheduled the tasks through windows scheduler to run mon-fri at 00:30hrs.

If the folder on the remote machine deos not contain any files then I want it to poll it again it after 1hr. I want this to continue until it finds a file.

Once it finds a file I want to stop.

I have created a batch script that calls the winscp script to download.

Any assistance will be kindly appreciated.

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26858
Location: Prague, Czechia
You can check in the batch file if there are any files in the local directory once the WinSCP script finishes. If not, wait 1 hour (you will have to find some tool for that) and run the script again.
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