Since blanks are interpreted as comand delimiters I get mess when executing the following command from a batch file getdata.bat:
set localdir=D:\mydata\2007 logs\
winscp myname:email@example.com/aaa/bbb /console /command "get ccc.log "%localdir%""
When I execute the same command on the remote console:
get ccc.log "D:\mydata\2007 logs\"
....everything works fine.
However I have problems passing the inside double quotes to the remote computer shell.
Even masking them with \ or ^ does not work.
How can I do this otherwise ?