Open Command prompt through chrome - google-chrome

Is it possible to open a command prompt through chrome link/button and passing a value/url. I am looking for a solution to open a local file through chrome. I am okay if the user manually presses the run command to open but alteast the cmd should open with passed values.

Related

How to run multiple chrome profiles in different remote debuging ports in ubuntu?

I have 2 chrome profiles. My aim is to control these 2 windows using puppeteer. So first, I have to open these profile windows via command line, specifying the debugging ports.
command 1: google-chrome --remote-debugging-port=9222 --profile-directory="Default"
command 2: google-chrome --remote-debugging-port=9223 --profile-directory="Profile 1"
When 1st command is executed, it opens a chrome window with the profile I mentioned. And I also get a WS URL for that browser. So I can use that in puppeteer.
Problem is while running second command. It also opens the profile, but no URL. It says "Opening in existing browser session".
I want to open more profiles and control them with puppeteer. Please help.

open "chrome://version" page in chrome from command line?

You can open a URL in chrome from the command line with
chrome.exe https://google.com
but when trying to do like chrome.exe chrome://version, it simply opens an empty page.
It seems that the chrome protects the privileged pages from abnormal behavior.
Is there any way to open the privileged pages from command line?

Run CloudEndPoints Explorer on Local HTTP

I'm trying to run the Api Explorer in LocalHost But it always show the Error
The API you are exploring is hosted over HTTP, which can cause problems.
So I follow the instruction
Go to File Explorer then paste this to address bar >> C:\Program Files (x86)\Google\Chrome\Application (or just go to where you can find your chrome.exe)
Right click chrome.exe > send to > Desktop (Create Shortcut)
Go to your desktop then find the chrome shortcut you've created.
Rename it to ChromeForTesting (this step is optional)
Right click the shortcut, then Click Properties
At the "Target", paste the following at the end of the link
--user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080
so Target should look somewhat similar to this
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080
Click Ok..
During testing close all of your opened google chrome browser.
Then double click ChromeForTesting shortcut (the one you've created), when a prompt appears, just click ok..
But After compelting this When I run that shortcut it will give the error
you are using unsupported command line flag --user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080
I also try to click load unsafe script but this is also not working.
Here is screen shot.

How to start google chrome with run command?

I tried opening google chrome by typing "chrome" into the run command(windows + R), but it does not open.
You can just type start chrome onto your cmd prompt to start chrome from command line
goto environment variables
This PC->Properties->Advanced System Settings (on left pane) -> environment variables-> new
and type "chrome" (without quotes) in variable name and
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
in variable value as below
Click Ok and close the windows.
That's it.
Press Window key+R
and type "chrome" (without quotes) and hit enter.
Chrome will open

How to open chrome://inspect devices using command prompt

I want to open chrome://inspect from windows command prompt.
Here my use case is I want to open the chrome browser from command prompt(using ProcessBuilder in java) and chrome://inspect link so i can see the devices attached to my system
so i tried opening chrome://inspect using this command
start chrome chrome://inspect which is not working
if I replace chrome://inspect with any url it's working.
Can any one let me know how to do this from command prompt or any other possible ways to do this
Chrome URLs can't be opened from the command line. They must be typed by a user into the omnibar.