For example if I click on a link in vscode editor it does not interfere with what I am currently doing - opens it without making chrome window active.
I want to achieve the same from command line from windows using one of: cmd, msys bash, powershell.
There is a similar question answered but without foreground requirement.
3 Answers
Answers 1
You can just Create one text file with .bat extension in windows OS. Then you can write path where your Chrome is present and then you can write Chrome.exe and then give the link as argument which you want to open.
For Example, cd C:\Program Files (x86)\Google\Chrome\Application
chrome.exe www.yahoo.com
I hope it will help you.
Answers 2
Haven't tried it but with PowerShell you can try :
Start-Process -WindowStyle Hidden "chrome.exe" "www.google.com"
or
Start-Process -WindowStyle Minimized "chrome.exe" "www.google.com"
Answers 3
Try running these commands on cmd
:
For Chrome: start chrome https://www.google.com
For Firefox: start firefox https://www.google.com
0 comments:
Post a Comment