Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

alpha1915

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

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