Synchronize folder with space character from command line

Advertisement

prietor
Joined:
Posts:
4

Synchronize folder with space character from command line

How can i synchronize, from command line, a folder that contains a space character?

I've tried this to synchronize "test folder":

WinSCP.exe /console /command "option batch continue" "open session1" "option transfer binary" "synchronize remote test%20folder test%20folder -mirror -delete -criteria=time" "close"

But it doesn't work. If i do:
WinSCP.exe /console /command "option batch continue" "open session1" "option transfer binary" "synchronize remote test folder test folder -mirror -delete -criteria=time" "close"

Then, obviously, synchronize has too many parameters

Any suggestion?

Reply with quote

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

Re: Synchronize folder with space character from command line

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

Reply with quote

Advertisement

You can post new topics in this forum