Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open a link in chrome from cmd (Windows) without bringing chrome window to foreground?

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.

like image 416
honzajde Avatar asked Nov 20 '22 00:11

honzajde


1 Answers

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"
like image 86
ChuckMaurice Avatar answered Jun 26 '23 11:06

ChuckMaurice