Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

writing a batch file that opens a chrome URL

Tags:

batch-file

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!

like image 288
user2824396 Avatar asked Oct 14 '13 01:10

user2824396


People also ask

How do I open a URL in chrome using CMD?

Open Chrome Using Command Prompt You can also do the same thing from the “Run” window. Open Run by typing “Run” in the Windows 10 search bar and selecting the “Run” application. Here, type Chrome and then select the “OK” button. The web browser will now open.

Can batch file open website?

If you start your web browser and frequently visit the same websites, you can create a batch file to open all of your favorite websites at once. Using a batch file will open the websites you choose in tabs using your default browser, and the steps are easy enough even for beginners.


1 Answers

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!

like image 128
SabareeshSS Avatar answered Oct 12 '22 22:10

SabareeshSS