advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
KILL Statement Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 KILL filespec$
 
 Usage Notes
   ■ The argument filespec$ is a string expression that may contain a path
     and the MS-DOS wildcard characters question mark (?) or asterisk (*). A
     question mark matches any single character in the file name or
     extension. An asterisk matches one or more characters starting at its
     position.
 
   ■ Be extremely careful when using wildcard characters with KILL. You can
     delete files unintentionally.
 
   ■ The KILL statement is similar to the MS-DOS ERASE or DEL command.
 
   ■ KILL is used for all types of disk files (program files, random-
     access data files, and sequential data files).
 
   ■ KILL deletes files only. To delete directories, use the MS-DOS RMDIR
     command or the Visual Basic RMDIR statement. See: RMDIR Statement
 
   ■ If you use KILL to delete a file that is currently open, Visual Basic
     generates the error message, "File already open."