How to Create an Application Selector Batch File for Microsoft Windows

Here is the code, just copy and paste it into a notepad file and save it as Appsel.bat

The codes work best in Windows XP.


Image via Wikipedia

Image via Wikipedia

@echo off

TITLE Application Selector

echo Created by Philip Dunay

echo Version 1.0

echo.

echo *** Note that these commands work best in Windows XP ***

ping 127.0.0.1 -n 2 -w 1000>nul 2>nul

ping 127.0.0.1 -n 2 -w 1000>nul 2>nul

ping 127.0.0.1 -n 2 -w 1000>nul 2>nul

ping 127.0.0.1 -n 2 -w 1000>nul 2>nul

cls

:A

cls

echo Menu:

echo [1]- Notepad

echo [2]- Documents

echo [3]- Command Prompt

echo [4]- Chrome

echo [5]- ITunes

echo.

echo What is your selection (1-5)? Press enter to confirm.

echo.

set /p number= 

cls

if %number%==1 start notepad

if %number%==2 start explorer

if %number%==3 start cmd

if %number%==4 start chrome

if %number%==5 start itunes

cls

echo Thank you for using Application Selector, 

echo would you like to make another selection?

echo.

echo Enter [Y] for yes, or [N] for no.

echo.

set /p select= 

if %select%==Y goto A

if %select%==N goto closing

:closing

cls

echo Thank you for using Application Selector by Philip Dunay!

echo.

echo Program will terminate shortly

ping 127.0.0.1 -n 2 -w 1000>nul 2>nul

ping 127.0.0.1 -n 2 -w 1000>nul 2>nul

ping 127.0.0.1 -n 2 -w 1000>nul 2>nul

Leave Your Response