DOS Build Problem!!!!

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

The Great One

Thread Starter
Joined
Sep 27, 2001
Messages
89
The scenario is as follows:-

What I want to do is create a boot disk that asks you to chose different options e.g.

1). Install Build 1
2). Install Build 2
3). Install Build 3
4). Install Build 4

When you chose the option the boot disk goes and runs/installs the file that you want.

Does anyone know how to do this as I haven't clue and also does someone know what command/file windows executes in order to kick off the install procedure as I just want to automatically install windows.

Cheers

Matt
 
Joined
Jul 29, 2001
Messages
21,334
There si a DOS command called "choice".....try that. Look up the command on google and I am sure you can find plenty-o-tutorials out there.
 
Joined
Mar 18, 2001
Messages
1,741
Here's an example of using CHOICE in a batch file.
The "> nul" parameter prevents your choice from
beinge echoed to the screen, and the "echo." lines
insert a blank line. The "@ECHO OFF" line prevents
all lines of the batch file being echoed to the screen.
Always check the errorlevels from the highest to
lowest as I've done here.

Code:
@ECHO OFF
  echo   Press a key:
  echo.
  echo                (1) Test 1
  echo                (2) Test 2
  echo                (3) Test 3
  echo                (X) Exit
  echo.

CHOICE /n /c:123x > nul
  if errorlevel 4 goto Endprog
  if errorlevel 3 goto Test3
  if errorlevel 2 goto Test2
  if errorlevel 1 goto Test1

:Test1
  echo You picked Test 1
  goto END

:Test2
  echo You picked Test 2
  goto END

:Test3
  echo You picked Test 3
  goto END

:Endprog
  echo We're outta here!
  goto END

:END
  echo.
Hope this helps, Mac :)
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top