Topic "Delay Between File Upload?"

Author Message
AVCrop
[View user's profile]

Joined: 2016-09-04
Posts: 1
Hi,

Is it possible, with scripting, to upload one file, delay 1 hour, and then upload another file? I have a list of about 170 files I want to upload using that algorithm.

Can someone advise how to script this?

Thank you,
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
It easy to script this in PowerShell.

Just use the Get-ChildItem cmdlet to find the files. And then loop the list, uploading the files one by one using WinSCP .NET assembly method Session.PutFiles, waiting between the uploads using the Start-Sleep cmdlet.

https://winscp.net/eng/docs/library_session_putfiles
https://winscp.net/eng/docs/library_powershell
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