How to open a URL in Firefox\\Chrome from command

2019-04-06 05:24发布

问题:

When executing the following command line:

C:\>"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "https://aaa.com" --new-window

it opens the browser in a new window but with all the toolbars - how can I open the browser like a popup?

回答1:

Maybe "application mode" is what you are looking for.

Here's an example:

"C:\Program Files\Google\Chrome\Application\chrome.exe" --app="http://www.youtube.com/"


回答2:

This might Help

How can I launch a browser with no window frame or tabs/address bar

https://superuser.com/questions/459775/how-can-i-launch-a-browser-with-no-window-frame-or-tabs-address-bar

Following site lists all command line switches for chrome

http://peter.sh/experiments/chromium-command-line-switches/



回答3:

in Mozilla FireFox you can do it like

firefox.exe -new-window "www.google.com"
firefox.exe -new-tab "www.google.com"

in Google Chrome you can do it like

chrome.exe --app="www.google.com"
chrome.exe --kiosk "www.google.com"