james_xxx
December 19th, 2008, 05:33 PM
I am rather embarrassed to resort to asking about this in the Ubuntu Forums, but...
As a final project in a class on Operating Systems that I am taking, we have to write a rather lengthy MSDOS batch script that uses interactive menus. (I will add that I have primarily done this assignment using FreeDOS running in VirtualBox, or using dosemu :D .)
I spent nearly a day writing (what I thought was) a very nice script, only to discover that in our instructions, we had been forbidden to use 'if errorlevel'. Unfortunately, this is what I had used throughout.
I have scoured our textbook and numerous online tutorials, but every example of a batch file menu I can find uses this forbidden command.
I am wondering if anyone out there in Ubuntu-land would have an idea as to how to create interactive menus in DOS without using 'choice' and 'if errorlevel'.
Suggestions will be VERY MUCH appreciated.
Thanks!
As a final project in a class on Operating Systems that I am taking, we have to write a rather lengthy MSDOS batch script that uses interactive menus. (I will add that I have primarily done this assignment using FreeDOS running in VirtualBox, or using dosemu :D .)
I spent nearly a day writing (what I thought was) a very nice script, only to discover that in our instructions, we had been forbidden to use 'if errorlevel'. Unfortunately, this is what I had used throughout.
I have scoured our textbook and numerous online tutorials, but every example of a batch file menu I can find uses this forbidden command.
I am wondering if anyone out there in Ubuntu-land would have an idea as to how to create interactive menus in DOS without using 'choice' and 'if errorlevel'.
Suggestions will be VERY MUCH appreciated.
Thanks!