Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
NT cmd - choice
Name: SING MENG Date: August 8, 2003 at 00:07:49 Pacific OS: NT CPU/Ram: 256
Comment:
Does anyone know how to make use of choice command (Dos7) in NT cmd?
Eg, Choice /c:yn /t:y,3 Hey! Master. Do you want to add it into index file?
Name: MikeBrewer Date: August 9, 2003 at 03:57:20 Pacific
Reply:
Choice /c:yn /t:y,3 Hey! Master. Do you want to add it into index file? --- Check for errorlevel right after the choice statement. if errorlevel==2 goto no-add if errorlevel==1 goto yes-adit
Errorlevel is determined by which one of the characters following the "/c:" option you choose. If you chose the 2nd choice, "n", then you can have it jump to the instructions following ":no-add" in your batch file. You can have more than two - /c:YNM Then you would have to check ... if errorlevel==3 goto maybe-ad Remember to start with the largest errorlevel number and work down - 3,2,1 or it may not work right.
The "/t:" parameter is GREAT! "/t:y,3" means after "3" seconds, pretend the user chose "y".
Summary: Is there any way of running a .cmd file in NT4 and preventing users from ^c or ^ Breaking into it. Or Some NT tool that can convert it into a exe. ...
Summary: I just tried what you said and created 3 partitions instead of 4 that are all 2 gigs each and Fat16. What happended was once I inserted the third NT installation disk, it asked me where I want to ins...