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

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

NEWBIE can't close CMD window

Post by DWBC »

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: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: NEWBIE can't close CMD window

Post by burger2227 »

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 : https://www.qb64.org/forum/index.php
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

Post by DWBC »

Thank you for swift reply. Sorted! :D
Post Reply