1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

DOS Build Problem!!!!

Discussion in 'Software Development' started by The Great One, Nov 14, 2001.

Thread Status:
Not open for further replies.
  1. The Great One

    The Great One Thread Starter

    Sep 27, 2001
    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.


  2. Rockn


    Jul 29, 2001
    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.
  3. MacFromOK


    Mar 18, 2001
    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.

      echo   Press a key:
      echo                (1) Test 1
      echo                (2) Test 2
      echo                (3) Test 3
      echo                (X) Exit
    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
      echo You picked Test 1
      goto END
      echo You picked Test 2
      goto END
      echo You picked Test 3
      goto END
      echo We're outta here!
      goto END
    Hope this helps, Mac :)
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 733,556 other people just like you!

Similar Threads - Build Problem
  1. n00e
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/58531

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice