@echo off :: Author: Robert Lie (mobilefish.com) :: :: This batch file displays a menu :: Usage: menu.bat color 0e REM ------------------------------------------------ REM Default values REM ------------------------------------------------ set menu=0 set confirm=n REM ------------------------------------------------ REM Start a Windows XP Application REM ------------------------------------------------ :OPTION cls echo. echo Select a Windows XP Application echo ------------------------------- echo. echo 1. WordPad echo 2. Calculator echo 3. Paint echo 4. ipconfig echo 5. msconfig echo 6. Internet Explorer echo 7. Windows Explorer echo 8. Display memory usage echo 9. Notepad echo 10. Terminal Server Connection (Remote Desktop Protocol) echo 11. nslookup (type: exit to quit) echo 12. Display networking statistics (TCP/IP) echo 13. Performance Monitor echo 14. Windows system diagnostics echo 15. Direct X diagnostics echo 16. Event viewer echo 17. IExpress (create a self-extracting / self-installing package) echo 18. Soundvolume echo 19. System configuration editor echo 20. Task manager echo 21. Telnet (type: quit to exit) echo 22. Browse to Microsoft Windows Update echo 23. Register editor echo. echo 0. (Exit) echo. REM ------------------------------------------------ REM Make a choice REM ------------------------------------------------ set /P menu=Selection: if '%menu%'=='0' goto EXIT if '%menu%'=='1' echo Starting Wordpad ... if '%menu%'=='1' "C:\Program Files\Windows NT\Bureau-accessoires\wordpad.exe" if '%menu%'=='2' echo Starting Calculator ... if '%menu%'=='2' "C:\Windows\System32\calc.exe" if '%menu%'=='3' echo Starting Paint ... if '%menu%'=='3' "C:\Windows\System32\mspaint.exe" if '%menu%'=='4' echo Starting ipconfig ... if '%menu%'=='4' "C:\Windows\System32\ipconfig.exe" if '%menu%'=='5' echo Starting msconfig ... if '%menu%'=='5' "C:\WINDOWS\PCHealth\HelpCtr\Binaries\msconfig.exe" if '%menu%'=='6' echo Starting Internet Explorer ... if '%menu%'=='6' "C:\Program Files\Internet Explorer\iexplore.exe" if '%menu%'=='7' echo Starting Windows Explorer ... if '%menu%'=='7' "C:\Windows\explorer.exe" if '%menu%'=='8' echo Display memory usage ... if '%menu%'=='8' "C:\WINDOWS\system32\mem.exe" if '%menu%'=='9' echo Starting Notepad if '%menu%'=='9' "C:\Windows\notepad.exe" if '%menu%'=='10' echo Starting Terminal Server Connection (Remote Desktop Protocol) ... if '%menu%'=='10' "C:\WINDOWS\system32\mstsc.exe" if '%menu%'=='11' echo Starting nslookup ... if '%menu%'=='11' "C:\WINDOWS\system32\nslookup.exe" if '%menu%'=='12' echo Starting netstat ... if '%menu%'=='12' "C:\WINDOWS\system32\netstat.exe" if '%menu%'=='13' echo Starting Performance Monitor ... if '%menu%'=='13' "C:\WINDOWS\system32\perfmon.exe" if '%menu%'=='14' echo Starting Windows system diagnostics ... if '%menu%'=='14' "C:\WINDOWS\system32\winmsd.exe" if '%menu%'=='15' echo Starting Direct X diagnostics ... if '%menu%'=='15' "C:\WINDOWS\system32\dxdiag.exe" if '%menu%'=='16' echo Starting Event viewer ... if '%menu%'=='16' "C:\WINDOWS\system32\eventvwr.exe" if '%menu%'=='17' echo Starting IExpress (create a self-extracting / self-installing package) ... if '%menu%'=='17' "C:\WINDOWS\system32\iexpress.exe" if '%menu%'=='18' echo Starting Soundvolume ... if '%menu%'=='18' "C:\WINDOWS\system32\sndvol32.exe" if '%menu%'=='19' echo Starting System configuration editor ... if '%menu%'=='19' "C:\WINDOWS\system32\sysedit.exe" if '%menu%'=='20' echo Starting Task manager ... if '%menu%'=='20' "C:\WINDOWS\system32\taskmgr.exe" if '%menu%'=='21' echo Starting Telnet ... if '%menu%'=='21' "C:\WINDOWS\system32\telnet.exe" if '%menu%'=='22' echo Starting Browse to Microsoft Windows Update ... if '%menu%'=='22' "C:\WINDOWS\system32\wupdmgr.exe" if '%menu%'=='23' echo Starting Register editor ... if '%menu%'=='23' "C:\WINDOWS\regedit.exe" set confirm=n set /P confirm=Start another application (y/n)? if '%confirm%'=='y' goto OPTION goto EXIT :EXIT color 07