Can not start Chrome via command line
I have a script that needs to run on multiple machines.
The problem is, if I open a command line and type in chrome
or chrome.exe
, I get the same error message that it is not recognized as an internal or external command...
I have already added it to my paths (as per screen shot below, see bottom entry in the paths) .
It works this way on other computers.
The command prompt has been restarted (as has the computer) since updating the paths.
Why does it not open Chrome as it does on my other machine(s)?
Whilst entering C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
directly into the command line and pressing enter does make Chrome launch, I don't see why the path is not working.
The problem is that you had the folder path and executable listed in your path:
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
You should omit chrome.exe
and just put the folder path that chrome.exe
is located in:
C:\Program Files (x86)\Google\Chrome\Application
The entry in the PATH is invalid:
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
It should only contain the folder, not the program:
C:\Program Files (x86)\Google\Chrome\Application