Topic "Uploading multiples files but I want to delay the upload for about 1 mn between the files"

Author Message


I am wondering if there is away to delay(wait or sleep ) in winscp. I uploading 8 files in the same locations but I have to wait about 45 sec to 1mn between files otherwise the receiving location will merge the files into one.
Now I do not want to write 8 different scripts to do the upload. i am using just one script something like this below

# Connect to SFTP server using a password
#upload file 1
put -nopermissions -nopreservetime C:\temp\file1.* /incoming/location/
#upload file 2
put -nopermissions -nopreservetime C:\temp\file2.* /incoming/location/
#upload file 3
put -nopermissions -nopreservetime C:\temp\file3.* /incoming/location/

#and so on .... until I put all files

# Disconnect
really the question is how can I delay the upload between these files in winscp using just one script .

Thank you
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
You can use a parametrized script.


(It's for multiple servers, in your case, it's multiple files).

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License