How to escape parameter in windows command line?

Posted by Rryk on Stack Overflow See other posts from Stack Overflow or by Rryk
Published on 2010-03-08T18:21:38Z Indexed on 2010/03/08 18:51 UTC
Read the original article Hit count: 281

Filed under:
|
|

I need to run the following command from the command line in Windows 7:

SumatraPDF.exe -inverse-search "\"C:\Program Files\eclipse\inverse_search.bat\" \"%f\" %l"

However I need to modify it a little, since my installation of Eclipse is located in here:

C:\Program Files (x86)\Eclipse (C++)

How do I escape this line correctly? Do I need to escape parenthesis and pluses too? Or is it just enough to escape double quotes?

© Stack Overflow or respective owner

Related posts about Windows

Related posts about command-line