Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I was experimenting around with batch files when I came across this question: Is it possible to make a command to get a string input from the user? (I was thinking of using a batch file to ask a question, then the user types a response in which gets stored in a variable) I've read the help files provided by DOS, but they list no such command.
Also remember that I'm kinda new at this, so bear with me here.

Wow, I see what u mean. Thanks, jboy, for help on this. BTW, if anyone else has alternate suggestions, feel free to post them here. Other tips can also come in handy.

Years of using Win9x have atrophied whatever batching skills I may have once had ; )
Leonardo used to post here quite often, but nowadays not so much - definitely check back though.
Some basics here - the DOS Help program (qbasic) does provide some info, although it's a trifle dry.
good luck
Thinking - it's a habit.

maybe this helps:
REM --- Realises the INPUT command in Dos 6.22---echo
BATCH_INPUT___hgQX-PPP_XPPPE#HH0E50EG0Ef0Ehs>myinput.comecho myinput.bat hoAX5@@PZYh@xX5@D3!r/P[WX,b,-PZh>>myinput.com
echo X3!X2ErP,{,{PYX4=0ErWX,j,-PZh@@X3!=set input>>myinput.com
ECHO.
ECHO.
ECHO.
echo Input:myinput.com
call myinput.bat
echo.echo.
del myinput.com
del myinput.batREM ---End of the input command---
The Input is in the variable %input%
uli

ups..
each of the the first three echo command lines which are split in two lines are in one.
sorry
uli

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |