Escape spaces in console mode

Advertisement

supercleanse
Guest

Escape spaces in console mode

I'm trying to synchronize a local folder to a remote folder but I'm having prolems escaping spaces in my paths... Is there any way to synchronize folders with spaces in their paths? Example:

winscp>synchronize c:\Documents and Settings\supercleanse\My Documents /home/supercleanse/My Documents

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,802
Location:
Prague, Czechia

Re: Escape spaces in console mode

Enclose the path in quotes, like:

winscp>synchronize "c:\Documents and Settings\supercleanse\My Documents" "/home/supercleanse/My Documents"
_________________
Martin Prikryl

Reply with quote

andy
Guest

Re: Escape spaces in console mode

How can this be done from the command line?

winscp3.com /command "open ....." syncrhonize local "Docs and Sets" ./

Complains about the number of parameters.



supercleanse wrote:

I'm trying to synchronize a local folder to a remote folder but I'm having prolems escaping spaces in my paths... Is there any way to synchronize folders with spaces in their paths? Example:

winscp>synchronize c:\Documents and Settings\supercleanse\My Documents /home/supercleanse/My Documents

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,802
Location:
Prague, Czechia

Re: Escape spaces in console mode

You cannot do this from command line (due to limitation of Windows parsing capabilities).
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum