Choices in batch files

June 29, 2011 at 07:41:57
Specs: Windows XP
batch file choice
i want to execute 10 choices after each other and my bat file shouldnt need physically to enter 1-10
ie
menu:
klite:
nlite:
tuneup:

execute start /wait klite:,start /wait nlite:,start /wait tuneup:
end:

before you post your email address in a public forum google email havesting.

edited by moderator: spam prevention


See More: Choices in batch files

Report •

#1
July 3, 2011 at 10:45:42
choice is no longer an option. they removed its feature from xp(it came back later)

so you are asking for the user to enter ten separate querys?
for example
set whatever=whatever
:query1
prompt /p query1="query1 :"
if %query1% equ whatever goto query2
goto query1

:query2
etc

or are you trying to start 10 programs?

start klite.exe & start nlite.exe & start tuneup.exe?
(may have to include paths here)

mike


Report •

#2
July 3, 2011 at 23:44:40
Hey Mike thanks for the speedy reply i found the solution

@echo off

call :instfirefox

:instfirefox
echo Installing Firefox . . .
start c:\Register.xlsx
echo Firefox Installed
goto :instklite

:instklite
echo Installing KLite . . .
start c:\sms.xlsx
echo KLite Installed
goto :instklite

:end
exit


Report •
Related Solutions


Ask Question