winscp.com -> 'cd' option, dir's w/spaces prompts error msg

Advertisement

ssstonebraker
Joined:
Posts:
3
Location:
Chicago

winscp.com -> 'cd' option, dir's w/spaces prompts error msg

Here is the command i'm using (when at command prompt)
cmd.exe /c echo put "file.xml" | winscp.com /command "open xxx@yyyy" "option transfer binary" "cd /Dir1 wSpace/SubDir"

"cd /Dir1 wSpace/SubDir" is the problem...When i use that at the command prompt i get the message: "too many parameters for cd"

I'm not sure how to modify the cd option to use a directory w/spaces.

...Any ideas? Thank you!

(Version 4.0.4 Build 346)

Reply with quote

Advertisement

ssstonebraker
Joined:
Posts:
3
Location:
Chicago

martin wrote:

Do you mean that you have tried all the hints, but none of them works?

I'm saying i can't find anything that covers how to deal with a directory w/spaces when using the cmd.exe and winscp.com in a single command

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

ssstonebraker wrote:

I'm saying i can't find anything that covers how to deal with a directory w/spaces when using the cmd.exe and winscp.com in a single command
OK, the FAQ deals with uploading files with spaces. Just replace the "put" command with "cd" and file name with directory name...

Reply with quote

Advertisement

You can post new topics in this forum