Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO USE THE KILL AND SYSTEM COMMANDS

Status
Not open for further replies.

beyondsociety

Technical User
May 9, 2002
40
US
HI,

IM CREATING A MENU FOR MY PROGRAMS IN QBASIC AND SO FAR IT
SHOWS THE MENU, SCROLLS, AND THEN LOOPS. I WANT THE EXIT IN THE MENU TO EXIT, BUT FOR SOME REASON IT WON'T. I KNOW I CAN USE THE KILL AND SYSTEM COMMANDS, BUT I DON'T KNOW HOW TO EXACTLY USE THEM. IF ANYBODY CAN HELP ME OUT I WOULD APPRECIATE IT.

 
Please take your CAPSLOCK key off to make your posts easier to read.

KILL deletes a file you specify:

KILL "C:\mymenu.bat"

while SYSTEM ends a program. If you're running the program with QBASIC/RUN, then you'll have to use SYSTEM to end the QBASIC interpreter as well. Just using END only terminates the program's execution, but not the interpreter itself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top