LATEST UPDATES
ShareHolder Finder v0.9.3 is now released!!! Check Product Page for more details.
✉ info@automationdevelopers.com

ITS ALL ABOUT AUTOMATION

AutoIt - Delete Folder

Related Tutorials

DirRemove


Deletes a directory/folder.

DirRemove ( "path" [, recurse = 0] )

Parameters

path Path of the directory to remove.
recurse [optional] Use this flag to specify if you want to delete sub-directories too.
    $DIR_DEFAULT (0) = (default) deletes the folder, only if it is empty
    $DIR_REMOVE (1) = remove files and subdirectories (like the DOS DelTree command)

Constants are define in "AutoItConstants.au3".

Return Value

Success: 1.
Failure: 0 if there is an error removing the directory (or if directory does not exist).

Remarks

Some directory attributes can make the deletion impossible, therefore if this is the case look at FileSetAttrib() to change the attributes of a directory.

Related


Related Tutorials



Post a Comment