How do I escape spaces in command line in Windows without using quotation marks?

Posted by David on Super User See other posts from Super User or by David
Published on 2011-05-04T12:54:50Z Indexed on 2012/10/03 15:41 UTC
Read the original article Hit count: 196

For example what is the alternative to this command without quotation marks:

CD "c:\Documents and Settings"

The full reason I don't want to use quotation marks is that this command DOES work:

   SVN add mypathname\*.*

but this command DOES NOT work :

   SVN add "mypathname\*.*"

The problem being when I change mypathname for a path with spaces in it I need to quote the whole thing. For example:

SVN add "c:\Documents and Settings\username\svn\*.*"

But when I try this I get the following error message:

svn: warning: 'c:\Documents and Settings\username\svn\*.*' not found

© Super User or respective owner

Related posts about Windows

Related posts about command-line