here we will create a batch file to open a website. First we must ping the website to see if it is running.
1. open notepad>save as>any file>mb.batch
2. in notepad type
Code: Select all
@echo off
ping www.suck-o.com
echo "suck-o is live"
pause
"%programfiles%\Mozilla Firefox\firefox.exe"
"www.suck-o.com"
exit
1.with any batch file the first line should start with
Code: Select all
@echo off
Code: Select all
ping www.website.com
Code: Select all
pause
4. if you haven't clicked x yet that means the website will load so let's have a little fun here and type us a message using
Code: Select all
echo "type message here"
Code: Select all
"%programfiles%\Mozilla Firefox\firefox.exe" "www.typeyourwebsite.com"
Code: Select all
exit
note: your directory for firefox.exe may be different so correct the path in line 5 of code if needed.