Alex Rivera | Logout

How to escape parameter in windows command line?

Asked 2010-03-08T18:21:38.443
10

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?

Edit
Report

1 Answer

19
SumatraPDF.exe -inverse-search "\"C:\Program Files (x86)\Eclipse (C++)\inverse_search.bat\" \"%f\" %l"
answered 2010-03-08T18:46:12.063

Your Answer