writing a batch file that opens a chrome URL

Batch File

Batch File Problem Overview


looking for some help writing a batch file to use as a joke on my friend. essentially i want it to open a certain URL in chrome. then i was going to disguise it as something like svchost.exe and have it run at startup on a timer. thanks a lot!

Batch File Solutions


Solution 1 - Batch File

It's very simple. Just try:

start chrome https://www.google.co.in/

it will open the Google page in the Chrome browser.

If you wish to open the page in Firefox, try:

start firefox https://www.google.co.in/

Have Fun!

Solution 2 - Batch File

assuming chrome is his default browser: start http://url.site.you.com/path/to/joke should open that url in his browser.

Solution 3 - Batch File

start "Chrome" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 2"

start "webpage name" "http://someurl.com/"

start "Chrome" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 3"

start "webpage name" "http://someurl.com/"

Solution 4 - Batch File

@ECHO OFF
"c:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app="https://tweetdeck.twitter.com/"

@ECHO OFF
"c:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app="https://web.whatsapp.com/"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser2824396View Question on Stackoverflow
Solution 1 - Batch FileSabareeshSSView Answer on Stackoverflow
Solution 2 - Batch FileDoonView Answer on Stackoverflow
Solution 3 - Batch FilejptagmanView Answer on Stackoverflow
Solution 4 - Batch FileRohit SalechaView Answer on Stackoverflow