Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bat file that asks for a choice

Status
Not open for further replies.

MoreFeo

Technical User
Nov 29, 2002
547
ES
Hi, I've got 2 ISO images, each one with autorun.inf and an installer.
I'd like to burn these two ISO into a single CD, making my own autorun to run something that asks the user which installer to run.
I was thinking to make a .bat file that the autorun should run, but I don't have many experience with shell in windows, so if someone can help me I'd be thankful.
 
On the old 95/98 dos, there used to be a command called choice which would allow just that. On XP, you could try

set /p variable=[prompt string]

eg

set /p ToInstall=Option 1 or 2
run%ToInstall%
 
How are these CDs going to be run? Are they going to be run from within Windows XP or outside of Windows XP (eg. DOS mode). If in DOS mode (or equivalent), the AUTORUN.INF will not work. If from within Windows XP, maybe some nifty VBScript would work depending on what you wanted to achieve.

--------------------------------------
"Insert funny comment in here!"
--------------------------------------
 
I just go to a old 98 PC and copy the file choice and put it on the CD with the autoexec file.
 
You could also add a nice little autorun page using some third party software like
Who offer a free "lite" version of their software.

You can also create a basic html page that links to your two choices and starts when you insert the CD.


Greg Palmer
Freeware Utilities for Windows Administrators.
 
Thanks a lot, the html page will do the trick, I'll just have to make it look good enough.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top