Saved Bookmarks
| 1. |
Solve : how to realize the function : set /p input value=: in Pure Dos? |
|
Answer» command line : set /p input value=: can be used in windows dos. but not in Pure dos. And I typed set /?, LOOKS like no /p parameters supported in my dos. So are there any other ways to realize this function in Pure dos? Thanks! command line : set /p input value=: can be used in windows dos NT machines only. Quote So are there any other ways to realize this function in Pure dos? I believe the choice command arrived with MS-DOS 5 and would be the closest alternative to getting input from set. Choice ALLOWS for single character input only, but does have a timer, which it seems many NT OS owners would kill for. Another alternative would be to WRITE your own command using the debug utility. Also try checking the net for programs input.com or answer.com. These were two 80's era programs that allowed for user input at the console. Actually, I want to store the keyboard input value into a variable, so I can use it in my bat file. Looks like input.com cannot realize that. Got it using Input.com!! Thanks Sidewinder for help!!can you please attach a copy of input.com to this post thanksYou can find the source code for a PROGRAM similar to input.com here. For all I know it may even be the original code for input.com. Your OS is not posted, but I'm fairly certain the debug utility was distributed with the earliest RELEASES of DOS. Follow the directions on how to assemble the code. Program only works in a MS-DOS Prompt window and not a Command Prompt window. Input is limited to a single word; a string with embedded spaces seems to break the code. Are we going back to the future? Personally I would have used QBasic. |
|