Computing.Net > Forums > Disk Operating System > Batch-File Scripting

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.

Batch-File Scripting

Reply to Message Icon

Name: sarahhh
Date: March 15, 2004 at 11:18:06 Pacific
OS: Win95/MS-DOS 6.22
CPU/Ram: P II 200/64MB
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: jboy
Date: March 15, 2004 at 11:28:35 Pacific
Reply:

Check out Secret_Doom's FAQ - plenty of good material there.


Thinking - it's a habit.


0

Response Number 2
Name: sarahhh
Date: March 15, 2004 at 11:37:12 Pacific
Reply:

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.


0

Response Number 3
Name: jboy
Date: March 15, 2004 at 11:48:20 Pacific
Reply:

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.


0

Response Number 4
Name: uli_glueck
Date: March 15, 2004 at 23:08:33 Pacific
Reply:


maybe this helps:


REM --- Realises the INPUT command in Dos 6.22---

echo
BATCH_INPUT___hgQX-PPP_XPPPE#HH0E50EG0Ef0Ehs>myinput.com

echo 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.bat

REM ---End of the input command---

The Input is in the variable %input%

uli



0

Response Number 5
Name: uli_glueck
Date: March 15, 2004 at 23:12:30 Pacific
Reply:

ups..

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

sorry

uli


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Batch-File Scripting

batch file login script www.computing.net/answers/dos/batch-file-login-script/10872.html

shell scripts+batch files www.computing.net/answers/dos/shell-scriptsbatch-files/15214.html

Help!! Batch File www.computing.net/answers/dos/help-batch-file/13525.html