Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

samz

Problem solved. Thank you and happy coding :)
samz

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