Post a reply

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

dnz77

Synchronize - After the command, the batch isn't interrupted

Hello, adding to my batch the synchronize command, the script don't terminate. It works as intended, but the script won't terminate, as it do removing the command. Am I doing something wrong?
This is my script:
@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
   /xmllog="%logsfolder%\%data%_%ora%-[Upload].xml" /ini=nul ^
   /command ^
   "open ftp://**************************/" ^
   "lcd ""%axfs%\BtoE\""" ^
   "cd /import" ^
   "put *.CSV" ^
   "lcd ""%axfs%\Leaflet""" ^
   "cd /attachments/leaflet" ^
   "synchronize remote"
"exit"

Thanks