Ok this is a script I wrote in DOS format (Command prompt mini-program) which allowed me to delete every shortcut on my desktop but this program.
In order to do that i just moved all the shortcuts to a folder i named: Hello in m C drive, as you can read in the easy to read script below
It simply creates a menu in a delightful black background and pink lettering which guides you to each choice and automatically opens up your selection
NOW, if you want to use this you need to edit the script to match your own parameters.
As you should hopefully already know Echo simply reflects characters in your command prompt specified by whatever follows "echo" and a space, thus allowing you to change my: Welcome to Nates Awesome Menu to whatever floats your boat.
ECHO does NOT open anything, it simply gives the user something to read and correspond their choices with, the real commands lies in this part:
Code:
set choice=
set /p choice=Type the Character to continue:
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' start firefox.exe
if '%choice%'=='2' start Iexplore.exe
if '%choice%'=='3' start C:\Hello\Wow.lnk
if '%choice%'=='4' start C:\Hello\Frozen.lnk
if '%choice%'=='5' start C:\Hello\realmlist.lnk
if '%choice%'=='6' start http://www.myspace.com
if '%choice%'=='7' start http://www.facebook.com
if '%choice%'=='8' goto Menu2
if '%choice%'=='9' start C:\Hello\Message.lnk
if '%choice%'=='S' goto Menu3
if '%choice%'=='W' start C:\Hello\wmplayer.lnk
if '%choice%'=='X' goto Menu4
if '%choice%'=='C' start C:\Hello\Computer.lnk
In order to designate a choice corresponding with what you "echoed" (for example echo 1. Firefox me baby, you want the user to type in a 1 and then hit enter to open the firefox.exe) You must set the if '%choice%'=='1' start firefox.exe
Make sure your echo corresponds with the programs you wish to open.
To open a file within your C drive directory simply read the code above "start C:\Hello\Computer.lnk
NOTE: you will have trouble opening to a folder with spaces in its name, thus I prompt you to make a folder with a simple name like I did, such as Hello.
THE FULL SCRIPT:
Code:
:Menu
cls
@echo off
color 0d
Echo ------------------------------------------------------------------------------
echo.
Echo Welcome to Nate's Awesome Menu
Echo.
Echo You are at the Main Menu!
Echo.
Echo Simply choose an option given by the menu and hit enter to proceed.
Echo.
ECHO 1. Firefox me baby!
ECHO 2. Internet explorer
Echo 3. World of Warcraft
Echo 4. Warcraft 3
Echo 5. Realmlist
Echo 6. Myspace
Echo 7. Facebook
Echo 8. Myspace and Facebook
Echo 9. Windows Live Messenger
Echo S. Myspace, Facebook, and Windows Live Messenger
Echo W. Windows Media Player
Echo X. Submenu with less commonly used items
Echo C. My computer
Echo.
set choice=
set /p choice=Type the Character to continue:
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' start firefox.exe
if '%choice%'=='2' start Iexplore.exe
if '%choice%'=='3' start C:\Hello\Wow.lnk
if '%choice%'=='4' start C:\Hello\Frozen.lnk
if '%choice%'=='5' start C:\Hello\realmlist.lnk
if '%choice%'=='6' start http://www.myspace.com
if '%choice%'=='7' start http://www.facebook.com
if '%choice%'=='8' goto Menu2
if '%choice%'=='9' start C:\Hello\Message.lnk
if '%choice%'=='S' goto Menu3
if '%choice%'=='W' start C:\Hello\wmplayer.lnk
if '%choice%'=='X' goto Menu4
if '%choice%'=='C' start C:\Hello\Computer.lnk
Echo.
:Error
Echo ERROR
goto Menu
:Menu2
Echo.
Echo starting myspace and facebook...
Echo.
start firefox http://www.myspace.com
start firefox http://www.facebook.com
goto Menu
:Menu3
Echo.
Echo starting myspace, facebook, and windows live messenger
Echo.
start firefox http://www.myspace.com
start firefox http://www.facebook.com
start C:\Hello\Message.lnk
goto Menu
:Menu4
@echo off
cls
Echo ------------------------------------------------------------------------------
Echo Welcome to Nate's Awesome SUB MENU
Echo.
Echo You are at the SUB-MENU!
Echo.
Echo You know what to do now, choose one.
Echo.
ECHO 1. Ventrilo
ECHO 2. Microsoft Word
Echo 3. Limewire
Echo 4. Skype
Echo 5. Hamachi
Echo 6. Oblivion
Echo 7. Battlefield
Echo 8. Fraps
Echo 9. Guild Wars
set choice=
set /p choice=Type the Character to continue:
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' start C:\Hello\Vent.lnk
if '%choice%'=='2' start C:\Hello\Word.lnk
if '%choice%'=='3' start C:\Hello\Limewire.lnk
if '%choice%'=='4' start C:\Hello\Skype.lnk
if '%choice%'=='5' start C:\Hello\Hamachi.lnk
if '%choice%'=='6' start C:\Hello\Oblivion.lnk
if '%choice%'=='7' start C:\Hello\Battlefield.lnk
if '%choice%'=='8' start C:\Hello\Fraps.lnk
if '%choice%'=='9' start C:\Hello\Guild.lnk
echo.
:Error
Echo ERROR
goto Menu
This Script is somewhat similar to LuA, I'd love to sit here and explain every aspect, including the sub-menus but I found that it's better to learn by observation
Copy and paste this into notepad
save as all files type
(whatevernameyouwant).bat
save a shortcut to your desktop, but the location of the file itself doesn't really matter
Feel free to ask any questions.