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

pfdvinnie

If file is not found script aborts

Hi, I have the following bat file.
CD D:\DWData\PubData\YM
"C:\Program Files (x86)\WinSCP\winscp.com" /inf=nul /command "option batch continue" /script=DosFTPYesMailPutDailyFilesCommands.txt

That calls this script DosFTPYesMailPutDailyFilesCommands.txt
open sftp://criercon:cxxxxxxx.postdirect.com/home/couconsumer/
cd LSCTest-import-members
lcd d:\DWData\PubData\YM\import-members
put members_06232021121430.txt
cd ..
cd LSCTest-import-subscriptions
lcd d:\DWData\PubData\YM\import-subscriptions
put dovoffers_subscriptions_06232021121430.txt
put dovprodinfo_subscriptions_06232021121430.txt
close
exit

The 2 subscriptions files do not exist in my test and when it gets to the first one, the process stops. I tried adding the /Command "option batch continue" but it is not working.

Thank you in advance for help.