I hate to say this but, I don't think you can do that using only Qbasic. The compiled apps of the full versions (4.5, 7.0 PDS, Power Basic, etc.) exit to the command line when finished. Straight Qbasic is intended to run as an interpreter.<br>
<br>
I have the debug code for a short keyboard loader (somewhere) that could terminate Qbasic if you do a SHELL("QuitQB" command. I'll post it here if I can find it.<br>
<br>
<p> <br><a href=mailto: > </a><br><a href=
It is possible to run DOS inside of QBASIC... could that be a solution? Are you using DOS in your program, or are you just interested in terminating QBASIC as well as the program when it's done? You can't have QBASIC exit itself as far as I know, but if you want to run DOS inside of QBASIC, that can be done, I'm pretty sure... <p>Liam Morley<br><a href=mailto:lmorley@wpi.edu>lmorley@wpi.edu</a><br><a href=
I would write a batch file that goes like this:<br><br><FONT FACE=monospace><br>@qbasic /run program.bas<br></font><br><br>Then have SYSTEM at the end of the program. This way, your user will be able to just run the batch file and everything is taken care of.
Good one, Rogue2! For some reason I thought the SYSTEM command didn't become available until QB 4. Thanks for reminding us that in works quite well in Qbasic.<br><br><grumble> I must be getting old. <grumble><br> <p> <br><a href=mailto: > </a><br><a href=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.