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

Author Message
alpha1915

Guest


Hello
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
sftp://username:@mypw@location.com/
#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
close
exit
really the question is how can I delay the upload between these files in winscp using just one script .


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

See http://winscp.net/eng/docs/script_upload_multiple_servers

(It's for multiple servers, in your case, it's multiple files).
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