Search code examples
batch-filedosdosbox

In DosBox-X batch, how to get user string input?


I need a text input in Dosbox, so it goes into an enviroment variable.

None of the solutions on Stack Overflow worked. set /p doesn't work. W.bat doesn't work too. I can use other programs besides the default in command.com.


Solution

  • I used the strings utility. It worked perfectly for me:

    strings variableName= ASK Question:
    

    You can download it by using this link from Internet Archive.