Saturday, May 26, 2012

Spaces in Windows Command Line

Oh dear! How silly I feel now... I spent years playing with spaces in Windows Command Line and always used the rule: "make sure that there are no spaces in your path". But only now I realized that one can just use quotes and all the command will work even with spaces in paths.

So, to call pscp.exe for the file in c:\Program Files\My Web Sites\ just print:
pscp "c:\Program Files\My Web Sites\"
and everything will work perfectly correct.

No comments:

Post a Comment