Macro Scheduler 15

DeleteFolder

DeleteFolder>path

 

Deletes the file/files/folder in path.

 

path can be a variable.  Wildcards can be used.

 

The outcome of the operation will be reported in variables CF_RESULT and CF_RESULT_CODE.  If the operation was aborted or could not proceed CF_RESULT will be False.  CF_RESULT_CODE will contain a numeric code returned by the operating system where 0 indicates success.  For details of the codes that may be returned see the SHFileOperation function documentation at msdn.microsoft.com.

 

To enable operating system file operation animations set CF_ANIMATE to 1.

 

Abbreviation : Del

See also: CopyFile, MoveFile, IfFileExists

 

Example

 

DeleteFolder>c:\temp