DeleteFile()

语法

Result = DeleteFile(Filename$ [, Mode])
概要
Deletes the specified file.

参数

Filename$ The file to delete.
Mode (optional) Options for the delete operation. It can be one of the following values:
  #PB_FileSystem_Force: Also deletes the file which are protected (read-only).

返回值

Returns nonzero if the operation was successful or zero if it failed.

参阅

CopyFile(), RenameFile(), FileSize(), CreateFile(), OpenFile()

已支持操作系统

所有

<- DeleteDirectory() - FileSystem Index - DirectoryEntryAttributes() ->