[Toc][Index]

DosDelete



#define INCL_DOSFILEMGR

USHORT  rc = DosDelete(FileName, Reserved);

PSZ              FileName;      /* File name path */
ULONG            0;             /* Reserved (must be zero) */

USHORT           rc;            /* return code */

Example 
This example deletes a file in the current directory named test.dat. 

#define INCL_DOSFILEMGR

#define FILE_DELETE "test.dat"
#define RESERVED 0L

USHORT rc;

   rc = DosDelete(FILE_DELETE,    /* File path name */
                  RESERVED);      /* Reserved (must be zero) */


Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs