Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to escape parameter in windows command line?

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?

like image 356
Sergiy Belozorov Avatar asked Mar 08 '10 18:03

Sergiy Belozorov


1 Answers

SumatraPDF.exe -inverse-search "\"C:\Program Files (x86)\Eclipse (C++)\inverse_search.bat\" \"%f\" %l"
like image 124
Esteban Küber Avatar answered Oct 07 '22 16:10

Esteban Küber