How to manage missing local files/folders for Command Line ?

Advertisement

samz
Joined:
Posts:
7
Location:
Switzerland

How to manage missing local files/folders for Command Line ?

Hello,
I use this command line to upload some files and synchronize some folders:
winscp.com /ini=nul /script=upload.txt
upload.txt
open ftp://username:password@www.domain.com/
put C:\file1.htm
put C:\file2.htm
synchronize remote -delete C:\folder1 /web/folderA
synchronize remote -delete C:\folder2 /web/folderB
close
exit
How to manage missing files or folders? I would like to run each line and bypass the lines with a missing local file/folder (or remote folder) without error stopping the script, like this:
System Error.  Code: 3.
The system cannot find the path specified
I would like to get just a warning for line with a missing folder/file.
Regards,
sam

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,852
Location:
Prague, Czechia

Re: How to manage missing local files/folders for Command Line ?

Some options:

Reply with quote

Advertisement

You can post new topics in this forum