Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

martin

Re: Problems passing double quoted "" dirs on cmdline to remote

This is limitation of Windows shell (cmd.exe), that I do not know solution for. You can use script file instead.
pstein

Problems passing double quoted "" dirs on cmdline to remote

I want to download some remote files to a local directory whose path contains blanks.
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:mypw@xxx.xxx.xxx.xxx/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 ?

Peter