Delay Between File Upload?

Advertisement

AVCrop
Joined:
Posts:
1

Delay Between File Upload?

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,

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
43,035
Location:
Prague, Czechia

Re: Delay Between File Upload?

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

Reply with quote

Advertisement

You can post new topics in this forum