Wednesday 6 July 2011

Open instantly your favorite programs using DOS .bat file

Open Business Applications using simple DOS script
copy and paste the below code in yourfilename.bat and create a shortcut to your taskbar

@echo off
color 0E
:a
cls
echo _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
echo                         Business Applications - your company name
echo _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
echo 1) Open Intranet
echo 2) Open Employee Performance Management System (EPMS)
echo 3) Open Financial Institutions Regulatory information Management System (FIRMS)
echo 4) Open Time Management System (TMS)
echo 5) Open Internal Risks Information System (IRIS)
echo 6) Open Legal Advice Database (LAD)
echo 7) Open Regulatory Enquiries and Advice Database (READ)
echo 8) Open Mena ME Employee Self Services (HRMS)
echo.
echo.
echo =) Enter "+" for extras!
set /p TH=Type here:
if %TH%==1 goto 1
if %TH%==2 goto 2
if %TH%==3 goto 3
if %TH%==4 goto 4
if %TH%==5 goto 5
if %TH%==6 goto 6
if %TH%==7 goto 7

if %TH%==8 goto 8
if %TH%==~ goto S
if %TH%==+ goto Extra
:1
cls
start iexplore.exe
http://myintranetsite/default.aspx
echo.
echo.
pause
goto a
:2
cls
start iexplore.exe
http://hostedserver/abcd/abcpage/Home.aspx
echo.
echo.
pause
goto a
:3
cls
start iexplore.exe
http://hostedserver2/abcd/abcpage/Home.aspx
echo.
echo.
pause
goto a
:4
cls
start iexplore.exe
http://hostedserver3/abcd/abcpage/Home.aspx
echo.
echo.
pause
goto :a
:5
cls
start iexplore.exe
http://hostedserver3/abcd/abcpage/Home.aspx
echo.
echo.
pause
goto :a
:6
cls
start iexplore.exe
http://hostedserver4/abcd/abcpage/Home.aspx
echo.
echo.
pause
goto a
:7
start iexplore.exe
http://hostedserver5/abcd/abcpage/Home.aspx
echo.
echo.
pause
goto a
:8
start iexplore.exe
http://hostedserver6/abcd/abcpage/Home.aspx
echo.
echo.
pause
goto a

:Extra
echo.
echo Hey this is my blogspot,

start iexplore.exe http://ventej.blogspot.com/
echo.
pause
goto a
:S
echo Oh hello, You found my seceret!
start iexplore.exe http://www.blogger.com/home

echo.
echo.
pause

goto a

------------------------ends
if you have google crome or opera or firefox or any other browser, add the executable name of the browser (e.g. for Opera C:\Program Files (x86)\Opera\opera.exe in place of internet explorer  iexplore.exe in the code mentioned above) and the application hyperlink to open that application.
also refer DOS commands are fading coz of 21st century clicks and touch-sensing era

0 comments: