Re: Multiple commands on one line in a batch file
The command line (for any application) is actually one-line only always.
Only in Windows batch files you can visually break that one line into multiple lines by delimiting the "new line" with the
The
So your batch file actually executes this command-line:
And that answers your question.
Only in Windows batch files you can visually break that one line into multiple lines by delimiting the "new line" with the
^
.
The
^
is not WinSCP syntax, it's a batch file syntax. WinSCP never sees the ^
.
So your batch file actually executes this command-line:
"C:\Program Files (x86)\WinSCP\WinSCP.com" /command "open ftp://anonymous:anonymous%%40example.com@10.203.63.14/" "cd /\STRATEGY\" "lcd ""C:\Users\Mark Dullingham\Documents\Backup Test""" "get L030N014.IQ3" "exit"
And that answers your question.