NEWBIE can't close CMD window

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

DWBC
Newbie
Posts: 3
Joined: Mon Jan 30, 2017 7:44 pm

NEWBIE can't close CMD window

Postby DWBC » Mon Jan 30, 2017 8:09 pm

I have just used QB64 for the first time and have compiled my first (very short) EXE program OK. However, when it finishes it is leaving the CMD window open. I have used SHELL EXIT as the last line, which I thought should automatically shut it, but it does not. I am using Windows & 64bit. Can anyone help please?
Thanks.

User avatar
burger2227
Veteran
Posts: 2144
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: NEWBIE can't close CMD window

Postby burger2227 » Tue Jan 31, 2017 9:54 am

Use SYSTEM at the end of code or you need to press a key after code has run.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : http://www.QB64.NET
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0

DWBC
Newbie
Posts: 3
Joined: Mon Jan 30, 2017 7:44 pm

Re: NEWBIE can't close CMD window

Postby DWBC » Tue Jan 31, 2017 11:02 am

Thank you for swift reply. Sorted! :D


Return to “QBASIC and QB64 Questions & Answers”

Who is online

Users browsing this forum: No registered users and 7 guests