VOGONS


First post, by MusicallyInspired

User metadata
Rank Oldbie
Rank
Oldbie

I'm trying to create a small batch launcher for a game. I want it to hold for 2 seconds and wait for user input (any key) to enter the game setup otherwise it simply launches the game. If the user does press a key, it will enter the game setup and then go back to the root "menu" with the 2 second timer again. I've looked at utilizing TIMEOUT but I don't like that the only way to handle aborting the countdown is CTRL+C. I've tried CHOICE but it seems like it doesn't support the modern convention of the TIMEOUT and default action command parameters. Is there another way I can do this?

EDIT: I guess the TIMEOUT command isn't even supported by DOSBox, never mind about that.

Yamaha FB-01/IMFC SCI tools thread
My Github
Roland SC-55 Music Packs - Duke Nukem 3D, Doom, and more.

Reply 1 of 2, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

You could use the CHOICE.COM program from MS-DOS 6, which fully supports the /T switch. Perhaps the one from FreeDOS does as well. However, you have to include a path when running the program (e.g. ".\choice") otherwise you'll still get the internal command, or you could rename it to something else to avoid the problem altogether.