How to escape parameter in windows command line?

前端 未结 3 1895
余生分开走
余生分开走 2020-12-11 03:27

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\\\"

3条回答
  •  無奈伤痛
    2020-12-11 03:44

    I don't even think you need to escape the quotes; it should be enough to do:

    SumatraPDF.exe -inverse-search ""C:\Program Files (x86)\Eclipse (C++)\inverse_search.bat" %f %l"
    

提交回复
热议问题