Last active
March 13, 2018 14:05
-
-
Save aviafelix/a9253df980703f5958ad771ad7442443 to your computer and use it in GitHub Desktop.
Launch browser from command line in Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Launch browser for testing | |
@echo off | |
echo | |
set CHROME_BROWSER_PATH=C:\Program Files^ (x86)\Google\Chrome\Application\ | |
set CHROME_EXEC=chrome.exe | |
set CHROME_USER_DATA="%~dp0%project_name_user_data" | |
set CHROME_PARAMS=--user-data-dir=%CHROME_USER_DATA% ^ | |
--start-maximized ^ | |
--no-first-run ^ | |
--no-default-browser-check ^ | |
--profile-directory="Default" ^ | |
:: --remote-debugging-port=9222 | |
:: --use-fake-device-for-media-stream --use-fake-ui-for-media-stream | |
:: --enable-automation --start-maximized --disable-default-apps --disable-translate | |
:: --disable-extensions --disable-background-networking --safebrowser-disable-auto-update | |
:: --enable-benchmarking and --enable-net-benchmarking --headless | |
:: --disable-sync --no-default-browser-check --no-first-run | |
:: --profile-directory="test0" | |
:: --profile-directory="Default" | |
:: --profile-directory="_profiles\Default" ^ | |
:: | |
start "" /D "%CHROME_BROWSER_PATH%" /I /MAX "%CHROME_BROWSER_PATH%%CHROME_EXEC%" %CHROME_PARAMS% | |
:: | |
echo on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment