Deletes an existing file.
Syntax:
Parameters:
Returns
Returns 1 if the operation is successful; otherwise the operation returns zero.
Remarks
The file is not deleted if it has one or more of the following properties:
- Read-Only
- System (file used by the operating system)
- Hidden
Example
Dim oEdiDoc As Fredi.ediDocument
Dim oFileSystem As Fredi.ediFileSystem
' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument
' Get file system object.
Set oFileSystem = oEdiDoc.GetFileSystem
' Delete a file.
oFileSystem.DeleteFile App.Path & "\TestFile.Txt"
MsgBox "Done"
Samples