I would like to open a file (index.html) in the current directory with Google Chrome or Chromium from a bash terminal (I\'m using Linux Mint 15). What is the command? I\'v
With Chrome not the default browser, this worked for me under Windows 10:
start "New Chrome Window Title" /d "C:\Program Files (x86)\Google\Chrome\Application" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --new-window "file://C:/Folder/SubFolder/Sub Subfolder/thisfile.html"
You'll need:
file://
" onto the URL;chrome.exe
;These should be reasonably doable in a .bat
or .cmd
file, using FOR
commands and the text-replacing features of the SET
command; or do all that in a .vbs
or .ps1
script which could be called from the batch file, etc.
But the basic syntax appears sound.