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

Author Message
ssstonebraker
[View user's profile]

Joined: 2008-03-04
Posts: 3
Location: Chicago
Here is the command i'm using (when at command prompt)
Code:
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)
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please read documentation. If that does not help, come back.
_________________
Martin Prikryl
ssstonebraker
[View user's profile]

Joined: 2008-03-04
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 =(.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Do you mean that you have tried all the hints, but none of them works?
_________________
Martin Prikryl
ssstonebraker
[View user's profile]

Joined: 2008-03-04
Posts: 3
Location: Chicago
prikryl 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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
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
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License