[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
QbasicFAQ_StandAlone
Can I make my programs appear to "stand alone"?


Back to QBasic FAQ Main Page.

You don't necessarily have to compile your QB programs to get them to appear like "real" programs.

QB1.1 supports command line arguments at launch, which include the program name. In order for your programs to work properly though, there are several steps you should take.

1. Set your PATH statement to include the path to QB.

Example: PATH C:\;C:\DOS;C:\WINDOWS

2. Create a batch file for launch.

Example: QBASIC /RUN C:\MYDIRECTORY\MYFILE.BAS

3. Make your program finish using SYSTEM and not END.

System will force QB to close editor environment when the program finishes.

Then all you have to do is run the batch file, and it will appear that your program is compiled. (Note: If the program is rather large, you may see the QB interface while QB parses and interprets the code.)

last edited (December 9, 2002) by KDivad Leahcim, Number of views: 2288, Current Rev: 2 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.