How to make a program selection menu.

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
32,600
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 2, 2008

How to make a selection menu to type a number and the program for that number opens.

My youtube site:
http://gettoliamssite.webs.com/Youtube/youtube.html

My youtube downloads site:
http://gettoliamssite.webs.com/Youtube/Downloads/Downloads.html




code:
@echo off
title Select Program
:start
cls
echo options

echo 1. Calculator
echo 2. word
echo 3. cmd
echo 4. Notepad
echo 5. Lock PC
echo 6. Log Off
echo 7. Exit

set /p var=What Would you like to open? (The Selection no)

IF '%var%' == '1' GOTO calc
IF '%var%' == '2' GOTO Word
IF '%var%' == '3' GOTO cmd
IF '%var%' == '4' GOTO Note
IF '%var%' == '5' GOTO SU
IF '%var%' == '6' GOTO LO
IF '%var%' == '7' GOTO exit

cls
msg * That selection does not exist please try again!
goto start

:calc
"C:\windows\system32\calc.exe"
Pause
cls
goto start



:Word
cd "C:\Program Files\Microsoft Office\OFFICE11\"
start WINWORD.EXE
goto start
PAUSE
cls


:cmd
start cmd
goto start
PAUSE
cls

:Note
start %SystemRoot%\system32\notepad.exe
goto start
PAUSE
cls

:SU
start %windir%\System32\rundll32.exe user32.dll,LockWorkStation
exit

:LO
set /p LOC=msg Are you sure yo want to logg off? (Y/N)
IF '%LOC%' == 'Y' GOTO LOC
IF '%LOC%' == 'N' GOTO LONC
pause
goto start

:LOC
start %windir%\System32\shutdown /l
exit

:LONC
msg * Log of Aborted!
goto start




:exit
exit

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 10 dislikes

Link to this comment:

Share to:

Uploader Comments (hackerhack1)

  • do yuo save as .BAT or .VBS?

  • @dabuzzard1

    sorry its so late! save as .bat

  • What's the name of the prgram you're using to show us what you're doing on your screen?

  • @amanda13val

    hypercam, its not very good though, i use camstudio for my newer vids!

  • When you put the stuff like "Are you sure you want to log off" Do you have to spell it correctly or can you put anyhting ?

  • @gamergirf4

    put anything

see all

All Comments (86)

Sign In or Sign Up now to post a comment!
  • nice 

  • @AaronFitton333 i know this is just you cant send .bat files over the internet. they will trak you down and put you in jail.

  • You also could have used the 'choice' command, and they wouldn't need to press enter afterwards.

  • @HookyDruids no you can't!!!!!! its illegal!

  • lol nice:p

  • fuck you

  • i want to make a program for me

  • @Snoop5856 if you ask that kind of question you probably shouldn't be trying to program at all because it is batch programming anything with command prompt on the machine can do this you could type all of this in a single session and run it if you wanted to.

  • your can send batch files over the internet. and even if your could not then juist turn them into .exe files.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more