Performs a copy, move, rename, or delete operation on a file system object.
WINSHELLAPI int WINAPI SHFileOperation(
LPSHFILEOPSTRUCT lpFileOp |
|
); |
Returns zero if successful or nonzero if an error occurs.
Note:
To delete an entire directory and subfiles and directories: Set pFrom to directory name (example c:\MyDir) set wFunc member to FO_DELETE,all the other members could be 0. Have a look at your API reference for detailed explaination of all the other members of the structure. then use: invoke SHFileOperation, addr sh
See: