Advanced batch command menu

18Jul08

Create a menu using batch commands

Open a new text document and copy this code.

TIP: Save as using the apostrophes something like “menu.bat”

@echo off

:menu
cls
echo — ENTER ONE CHOISE —
echo O. Exit Batch
echo 1. Wamp Server
echo 2. Adobe DreamWeaver CS3

echo 3. Adobe Photoshop
echo 4. Adobe Illustrator
set /p var=Choise:

IF ‘%var%’ == ‘0’ exit
IF ‘%var%’ == ‘1’ GOTO wamp
IF ‘%var%’ == ‘2’ GOTO dreamweaver
IF ‘%var%’ == ‘3’ GOTO ps
IF ‘%var%’ == ‘4’ GOTO Illustrator
echo entered nothing
PAUSE
exit

:wamp
cls
start C:\wamp\wampmanager.exe

GOTO END

:dreamweaver
cls
start C:\PROGRA~1\Adobe\ADOBED~2\dreamweaver.exe
GOTO END

:ps
cls
start C:\PROGRA~1\Adobe\ADOBEP~1\Photos~1.exe
GOTO END

:Illustrator
cls
start C:\PROGRA~1\Adobe\ADOBEI~1\Suppor~1Contents\Windows\Illustrator.exe
GOTO END

:END
GOTO menu

Advertisements


One Response to “Advanced batch command menu”

  1. Good work
    Thanks


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: