| 1. |
Solve : Promt for user input in autoexec.bat? |
|
Answer» Hello! maybe the fact of this Sorry I probably forgot to mention that it isnt in Windows XP i want to run this, but when booting up the computer... Didnt know by the time I was writing this thread that the "set /p" command only works in windows but not in DOS. So the last code example is not usable. The code part using the "choice" command is for DOS and that is the code im having problem with.try it without (1, 2)%1 replace IF ERRORLEVEL == 2 ERRORLEVEL 2 etc.Quote from: mat123 on May 20, 2010, 07:55:20 AM try it without Ok thanks I will trymat123 means IF ERRORLEVEL 2 goto quit IF ERRORLEVEL 1 goto install etc Quote from: Salmon Trout on May 20, 2010, 12:34:36 PM mat123 means Tried it and it didnt work. :/ Okay, So now I´ve tried all of the possibilities I know of regarding this so I´ve have started on a new idea which I would like to hear thoughts about this idea of mine. What about if I in "autoexec.bat" write a command which executes another program on the CD which then writes out the warning about reinstalling the computer with this ghost cd and promt the user for an input? If the user answers that it wants to run the ghost installation it executes the ghost installation from that program INSTEAD? Is it possible to do so and if it is, which programming language is the easiest to learn to write such program? Best regards/ PeterIn my opinion, VB6 is a viable option(Although you ought to look around to C++ and other programming languages for your "Programming-Style") But before you goto that, Can you give us details about Autoexec:
Thanks, Nick(macdad-) |
|