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

    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
     
  2. Rockn

    Rockn

    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.
     
  3. MacFromOK

    MacFromOK

    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 :)
     
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!

Loading...
Similar Threads - Build Problem
  1. n00e
    Replies:
    2
    Views:
    298
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