FolderDelete

 

Delete the folder

 

int @FolderDelete(string foldername, int recursive);

 

Parameters

string foldername : Name of folder. It needs absolute path.

int recursive : 0=Delete folder only when it is empty, 1=Delete both files and folders in a subfolder.

 

Return Value

If it returns 1, the folder was deleted normally, and if it returns 0, the folder was not deleted.

 

¿¹Á¦

retn = @FolderDelete("c:\\Sample", 0);

if(retn == 1) {

   @Message("O.K. Folder deleted."); 

}

else {

   @Message("Fail. Folder not deleted."); 

}

 

Description : Delete "Sample" subfolder on C: drive.

 

Version Information

Supported Version: 10.3.0

 

Related Helps

@FolderCreate()

@FolderDelete()

@FolderExists()