我在Virtual PC 2007中有一个虚拟机。
为了从桌面启动它,我在批处理文件中使用以下命令:
"c:\program files\Microsoft Virtual PC\Virtual PC.exe" -pc "MY-PC" -launch
但这会在虚拟机关闭之前使主机机器上留下一个DOS提示符,直到我退出Virtual PC控制台。这很烦人。
所以我改用了START命令:
start "c:\program files\Microsoft Virtual PC\Virtual PC.exe" -pc MY-PC -launch
但它在传递给Virtual PC的参数上出现了问题。
START /?
表明参数确实位于该位置。是否有人使用START
启动具有多个命令行参数的程序?
Start-Process: Cannot validate argument on parameter 'FilePath'. The argument is null or empty. Supply an argument that is not null or empty and then try the command again
。 - geotheory