Salesforce

FileDelete (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

FileDelete (Magic xpa 3.x)

Deletes a file from the disk, and returns a Boolean (TRUE, FALSE) indicating success or failure.

Syntax:

FileDelete(file name)

Parameters:

file name: An Alpha string that represents the file name. The string may contain a path. If the path is not indicated, Magic xpa assumes the current directory.

Returns:

Success returns TRUE; failure returns FALSE.

Example:

FileDelete('C:\TEMP\TMPFILE.TMP') - Deletes TMPFILE.TMP from the TEMP directory on Drive C.

Note:

It is advisable to use this function instead of using a Shell to OS internal event.

See also:

FileCopy, FileExist, FileInfo, FileRename

How Do I Delete a File or a Data Source in a Task that Handles the Same File or Data Source?

How Do I Delete a Disk File?

The Online and Rich Client Samples projects (program EL15 and REL15)

Reference
Attachment 
Attachment