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

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

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

Please read documentation. If that does not help, come back.
_________________
Martin Prikryl

Reply with quote

ssstonebraker
Joined:
Posts:
3
Location:
Chicago

I've read through the entire FAQ, nothing seems to cover this... i wish the people that set up this FTP didn't uses spaces in the directory name =(.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

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

Reply with quote

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

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
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...
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum