[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.)
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
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.)
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
