如何在windows命令行中转义参数? [英] How to escape parameter in windows command line?

查看:795
本文介绍了如何在windows命令行中转义参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从Windows 7的命令行运行以下命令:

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

SumatraPDF.exe-反向搜索\ C:\Program Files \eclipse \inverse_search.bat\\%f \%l

但我需要修改一点,因为我的Eclipse安装位于这里:

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?

推荐答案

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

这篇关于如何在windows命令行中转义参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆