If file is not found script aborts

Advertisement

pfdvinnie
Joined:
Posts:
1

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.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum