我在cmd提示符下尝试了以下命令:
start "c:\program files (x86)\google\chrome\application\chrome.exe" --new-window "http://localhost:8080:/debug?port=5858"我得到"windows找不到'--new-window‘
如果我删除start命令,它就能正常工作。如果我离开了start命令,但删除了--new-window参数,那么这个url就会在我的默认浏览器(ie)中打开。
我已经尝试了上面的几种变体,但都不能正常工作。
在一个新窗口中使用给定的url打开chrome的start命令的正确语法是什么?
发布于 2014-04-19 05:00:21
答案就在这里:Using the "start" command with parameters passed to the started program
start "" "c:\program files (x86)\google\chrome\application\chrome.exe" --new-window "http://localhost:8080:/debug?port=5858"(在行首添加空的title参数)
发布于 2017-09-29 20:26:30
在Windows 10中,以下命令有效:
start chrome --new-window "https://www.facebook.com"这在cmd中非常有效。
发布于 2018-10-14 22:31:19
试着把它放在一个批处理文件中,然后你就可以处理大小和位置来:
start "" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --new-window "http://brianp.dk/" --window-size="2560,1000" --window-position="0,0" --user-data-dir="D:/Test/Profiles/1"
start "" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --new-window "http://borsen.dk/" --start-maximized --window-position="2560,000" --user-data-dir="D:/Test/Profiles/2"
start "" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --new-window "http://penge.dk/" --window-size="1280,1000" --window-position="0000,1000" --user-data-dir="D:/Test/Profiles/3"https://stackoverflow.com/questions/23160472
复制相似问题