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

RickB

Re: how to get /Command put work with Filenames having space

CCR wrote:

hello,
i hope someone had that problem before or i am just to stupid.
i did escape everything i could, but i could't get this statement work properly. i must have it scripted since it is for automation

WinScp3.com /command "open me@myserver" "put "C:\Documents and Settings\SomePath\SomeFile.txt" "Projekte"" close exit

i though double escaping is necessary (i can't get it work without anyway).

help is highly appreciated
thanks in advance


I know you have found a workaround but for the record here is a possible solution.
I had this problem and solved it by using the short (8dot3) version of the path. For example, you could do this instead:

WinScp3.com /command "open me@myserver" "put C:\DOCUME~1\SOMEPA~1\SOMEFI~1.txt Projekte"

The exact 8dot3 names of your directories and files may no be what I have typed above, but probably is. you can open a command prompt and type DIR /X and you will see the short 8dot3 names in the DIR listing.
ccr

thanks martin,
i already gave up on this - an turned in to /script - now it works
martin

Re: how to get /Command put work with Filenames having spaces

I do not think it is possible due to limitations of Windows shell.
CCR

how to get /Command put work with Filenames having spaces

hello,
i hope someone had that problem before or i am just to stupid.
i did escape everything i could, but i could't get this statement work properly. i must have it scripted since it is for automation

WinScp3.com /command "open me@myserver" "put "C:\Documents and Settings\SomePath\SomeFile.txt" "Projekte"" close exit

i though double escaping is necessary (i can't get it work without anyway).

help is highly appreciated
thanks in advance