Script question
I created a script that is designed to copy several directories to a remote server. The /command section of the script reads as follows:
log="C:\Users\Administrator\Documents\WinSCP.log" /ini=nul ^
/command ^ "open sftp://root:<remote host>/ -hostkey=""xxxxx""" ^ "lcd H:\MIM_DATA\BACKUP" ^ "cd /xfs4/MimVista/<localhost>" ^ "put -neweronly *" ^ "lcd C:\ProgramData" ^ "cd /xfs4/MimVista/<localhost>" ^ "put -neweronly MIM" ^ "exit"
There were several files that could not be copied due to their being in use at the time, and these can be excluded from the process. The script also timed out before completing the copy of all the directories although I suspect that was due to the files that were in use, and the system waiting for user interaction. As it is, when I ran the copy interactively, I skipped the files, and all directories were copied over.
My questions are the following:
1. Would the files in question have prevented the remaining directories to be copied due to the need for user input?
2. What syntax should I use to exclude the files in question?
Thanks.