1.

Solve : Alternative to SET /P on DOS 6.22?

Answer»

Hey GUYS,

Just for the giggles I'm running a Virtualbox on my PC with an emulated installation of DOS 6.22. I've made a couple minor TWEAKS to it from a 'clean' install, such as adding CD-ROM drivers (enabling it to use CD images) and I've introduced a more modern edit.com file, which has a few more features than the original had. Other than that, it's basically what you'd EXPECT in an install of DOS 6.22.

I've run into a bit of an issue, however, when it comes to writing batch files, as the methods I normally use for dealing with user input no longer work. As you probably can tell, the issue lies in my ability, or lack thereof, of handling user input. CHOICE EXISTS, but isn't flexible enough for what I WANT, and for the life of me, I'm having no luck either finding an alternative, or adapting a newer SET command to this installation.

So, if someone could point me in the right direction: How can I, in a pre-cmd.exe world, request input data from a user and store it in a variable during a batch file?Using a Qbasic script, writing a temporary batch file which you call, is one method that was used.http://www.robvanderwoude.com/userinput.php



Discussion

No Comment Found