VOGONS


First post, by RobertX

User metadata
Rank Newbie
Rank
Newbie

Good day,

I'm running version 0.74 of DOSBOX. Recently, I've added certain commands in the autoexec section of the DOSBOX configuration file, namely to mount the CD-ROM drive and to start an IPX server.

Now on a DOSBOX "client" side, I want to take user input regarding the server's IP and can't really seem to do it.

Was it SET /P Choice = Enter IP ?

It seems to work in the command prompt of Windows (7); it just doesn't work here in autoexec.bat.

In advance, I appreciate any help that I can get. Thanks.

Reply 1 of 7, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

set /P is not a DOS command.
it's a command prompt extension that we will not support.
use the command "choice" like you would have in DOS.

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 7, by RobertX

User metadata
Rank Newbie
Rank
Newbie

My answers are not yes/no, it's a variable input. How would I be able to accept input (IP address) data?

Sorry if I didn't make myself clear in my last post?

Reply 3 of 7, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I missed that part.
Find an utility that does it for you as we will not accept set /p.
I don't know one, but maybe someone else does.

Water flows down the stream
How to ask questions the smart way!

Reply 4 of 7, by RobertX

User metadata
Rank Newbie
Rank
Newbie

Thanks.

Reply 5 of 7, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The PC Magazine utility STRINGS v2.5 can put user input into an environment variable (works in DOSBox's shell), and a bunch of other stuff besides (that may or may not work in DOSBox).

@echo off
STRINGS var= ASK Enter input:
echo Input was %var%

The archive is available on simtel here.

Reply 6 of 7, by RobertX

User metadata
Rank Newbie
Rank
Newbie

Thank you all.

Reply 7 of 7, by RobertX

User metadata
Rank Newbie
Rank
Newbie

I've done it! Woo!