Take User Input in PCDOS
Posted: 09 Dec 2010 16:48
Hello. A bit different from Windows Batch Programming, but still fits in. I have a computer that boots PCDOS 7.1 (yes, it still goes). The batch language in it is pretty much the same as MSDOS but I can't use the 'set /p' command to ask for input from the user.
I have a program that needs to request certain things from the user - ones that cannot be put into command line arguments etc, but as I have said, I cannot use set /p. I do know about the messy methods like this for example:
coffee.bat
yes.bat
no.bat
This is too messy and slow switching between different programs.
Is there a way to do this, or should I write a QBASIC program or something??
Thanks a million!
phillid
I have a program that needs to request certain things from the user - ones that cannot be put into command line arguments etc, but as I have said, I cannot use set /p. I do know about the messy methods like this for example:
coffee.bat
Code: Select all
@echo off
echo Do you want a coffee?
prompt $G
yes.bat
Code: Select all
@echo off
echo Sorry, I can't get you one!
no.bat
Code: Select all
echo Good. Because I can't get you one anyway.
This is too messy and slow switching between different programs.
Is there a way to do this, or should I write a QBASIC program or something??
Thanks a million!
phillid