Difference between revisions of "KILL"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
(Created page with '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 director…')
 
imported>Clippy
Line 9: Line 9:
 
* The filename can have a path to a different directory. The filename can be a string value in quotation marks.
 
* The filename can have a path to a different directory. The filename can be a string value in quotation marks.
 
* 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.
 +
 +
 +
''Example:'' KILL "C:\Qbasic\data\2000data.dat"
  
  
  
 
''See also:'' [[FILES]], [[SHELL]], [[OPEN]]
 
''See also:'' [[FILES]], [[SHELL]], [[OPEN]]
 +
 +
 +
 +
==Navigation:==
 +
 +
[[Keyword_Reference_-_Alphabetical|Go to Keyword Reference - Alphabetical]]
 +
 +
[[Keyword Reference - By usage|Go to Keyword Reference - By usage]]

Revision as of 06:31, 6 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 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.


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


See also: FILES, SHELL, OPEN


Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage