

>The above two lines should not be edited<<<-Īll lines starting with :Item_ and their number (in my example 1 to 6) is where you enter the path and executable name of the application to be opened. IF '%x%' = '%x%' GOTO Item_%x% – statement that determines what number in the list you chose and to go to the line (GOTO) that will open the application. Set /p x=Pick: – set the variable name x=Pick that is used in the next line You should edited these lines with the names of the applications you want displayed. The above lines are the applications that will be displayed in the list.

:start – begins the commands to display the list – The off prevents displaying results of the commands at the prompt. Start /MIN /D"C:\Program Files\Mozilla Firefox" firefox.exe Start /MIN /D"C:\Program Files\Internet Explorer\iexplore.exe" Start /MIN /D"C:\Program Files\Microsoft Office\Office10" EXCEL.EXE Start /MIN /D"C:\Program Files\Microsoft Office\Office10" WINWORD.EXE Start /MIN /DC:\Windows\System32 calc.exe Start /MIN /DC:\Windows\System32 notepad.exe Open the file that you created using notepad, then copy and paste the following code. txt (I have named my file chooseapp.txt). Next name the file what ever you want and for now, leave the extension as. Just right click on your desktop and select New \ TextDocument.
Batch file rename files notepad script windows#
NOTE: Your path may be different depending on the version of Windows and Office you are using.įor any application executable that you can not find, use Windows search (in XP and Vista) to help find the location. On my computer, the executable path is:Ĭ:\Program Files\Microsoft Office\Office12 EXCEL.EXE This can be accomplished by finding the shortcut of the application in the Start Menu and right click on the application icon (make sure the Shortcut tab is selected).įor Microsoft Office Applications, you will need to look in the folder where Office is installed.

Next, find the executable path for each application. To create the batch file, first, you will want to make a list of applications that you use frequently.įor this example, I will select six applications (remember they can be any amount and type of applications you want to use):
