Difference between revisions of "KILL"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
imported>Clippy
m
Line 3: Line 3:
  
  
''Syntax:'' KILL filename$
+
:::::''Syntax:'' KILL filename$
  
  
Line 10: Line 10:
 
* KILL does not ask for verification! Be careful! Don't delete empty files in the root directory or Windows!
 
* KILL does not ask for verification! Be careful! Don't delete empty files in the root directory or Windows!
 
* To KILL a file it MUST be [[CLOSE]]d.  
 
* To KILL a file it MUST be [[CLOSE]]d.  
* KILL does not verify that a file has been deleted.
+
* KILL does not ask or verify that a file has been deleted.
 
* If the file did not exist, a "File not found" error will result.
 
* If the file did not exist, a "File not found" error will result.
  

Revision as of 02:17, 22 September 2009

The KILL statement deletes a file name designated by a STRING value or variable.


Syntax: KILL filename$


  • The filename can have a path to a different directory. The filename can be a set string value in quotation marks.
  • KILL does not ask for verification! Be careful! Don't delete empty files in the root directory or Windows!
  • To KILL a file it MUST be CLOSEd.
  • KILL does not ask or verify that a file has been deleted.
  • If the file did not exist, a "File not found" error will result.



Example: KILL "C:\Qbasic\data\2000data.dat"


See also: FILES, SHELL, OPEN, CHDIR, MKDIR


Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage