Computing.Net > Forums > Disk Operating System > Running QBASIC programs via batch

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Running QBASIC programs via batch

Reply to Message Icon

Name: PONG
Date: October 24, 2001 at 10:00:53 Pacific
Comment:

If I need to execute a QBasic program from a DOS batch script:
QBASIC /RUN MYPROG.BAS
but after executing it waits for you to press a key ... and starts the editor. Any way to bypass that and close qbasic after the program has run?



Sponsored Link
Ads by Google

Response Number 1
Name: astroraptor
Date: October 24, 2001 at 15:52:17 Pacific
Reply:

No, but you can compile it to an EXE, much easier. You'll need 4.5 or 7.1 (it's on my FTP if you want it)


0

Response Number 2
Name: xb
Date: October 24, 2001 at 23:20:05 Pacific
Reply:

edit the .BAS program and at the part where the program terminates, add the line:

SYSTEM


0

Response Number 3
Name: astroraptor
Date: October 25, 2001 at 04:10:48 Pacific
Reply:

That'll only go to a DOS prompt and as soon as you type EXIT you'll go back to QBASIC.


0

Response Number 4
Name: PONG
Date: October 26, 2001 at 11:35:51 Pacific
Reply:

Thanks, System seemed to work fine for me when i tried it, but i'll have to use exit now to be sure.


0

Response Number 5
Name: PONG
Date: October 26, 2001 at 11:39:25 Pacific
Reply:

And about the compiler, thanks (!) but I really don't use BASIC - it came in handy this time :)


0

Related Posts

See More



Response Number 6
Name: Bharat Bikram Kunwar
Date: January 2, 2002 at 04:53:55 Pacific
Reply:

I dont know the functions of some commands.
If you all wouldnt mind then could you all please send me a document on all QBASIC commands ? I would be very grateful if you all helped me !


0

Sponsored Link
Ads by Google
Reply to Message Icon

Copy Files Using Batch Bogus Error Message



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Running QBASIC programs via batch

edit a blank space in text file?? www.computing.net/answers/dos/edit-a-blank-space-in-text-file/3534.html

running dos programs in win xp www.computing.net/answers/dos/running-dos-programs-in-win-xp/9114.html

running dos program on LAN of winNT and win95; error # 1 www.computing.net/answers/dos/running-dos-program-on-lan-of-winnt-and-win95-error-1-/2117.html