Location: London, England
Posted: 2016-11-01 12:36
I want to make it easier for some of mu colleagues to write a site specific batch file to retrieve some files. We have the ability to export some details in to excel and I can ther3efore get excel to insert the relevant info in to a long text string.
for this to work I need ALL of the commands in the following code to be on one line.
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
"open ftp://anonymous:email@example.com/" ^
"cd /\STRATEGY\" ^
"lcd ""C:\Users\Mark Dullingham\Documents\Backup Test""" ^
"get L030N014.IQ3" ^
I think it has something to do with the ^ symbol but I'm not sure how to remove this or does it need to be replaced by another symbol.
Any help much appreciated.
Location: Prague, Czechia
The command line (fr 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
So your batch file actually executes this command-line:
And that answers your question.
You can post new topics in this forum
And it's free!