Search code examples
command-linedosdosbox

MS-DOS command-line set /p


I want to create a MS-DOS .bat program that asks user to select an option using the following line:

set /p opt=Select your option:

The line is executed, but it doesn't do anything and continues executing the rest of the batch file without user prompt. What is wrong? I tried this in DOSBox 0.74.


Solution

  • DOSBox probably doesn't support setting environment variables through user prompt, so I downloaded working command.com from FreeDOS.