Batch file 带空格的路径的额外引号
我正在尝试从Windows CMD执行命令Batch file 带空格的路径的额外引号,batch-file,cmd,Batch File,Cmd,我正在尝试从Windows CMD执行命令 cmd /c "timeout 3 > nul & start /min C:\Users\Me\Documents\Path with extra spaces\myapp.exe" 由于路径包含空格,我需要在其周围加引号,以指定正确的位置。到目前为止,我已经尝试了很多方法(额外的双引号“,”转义“^),但没有一种有效。像这样: cmd /c "timeout 3 > nul & start /min """C:\Use
cmd /c "timeout 3 > nul & start /min C:\Users\Me\Documents\Path with extra spaces\myapp.exe"
由于路径包含空格,我需要在其周围加引号,以指定正确的位置。到目前为止,我已经尝试了很多方法(额外的双引号“,”转义“^),但没有一种有效。像这样:
cmd /c "timeout 3 > nul & start /min """C:\Users\Me\Documents\Path with extra spaces\myapp.exe""""
命令必须完全从CMD运行。
start
将引用的第一个参数作为windows标题。因此,给它一个虚拟标题(例如空字符串“”
):
start
将第一个引用的参数作为windows标题。因此,给它一个虚拟标题(例如空字符串“”
):
可能有帮助..检查(提示:使用/S)可能有帮助..检查(提示:使用/S)
cmd /c "timeout 3 > nul & start "" /min "C:\Users\Me\Documents\Path with extra spaces\myapp.exe""