Tip - Folder existence checking and delete a directory tree that is not empty
Details - _waccess function determines whether the specified file or directory exists and the mode support like read only or Read-write.
In order to delete the directory which is not empty we can't use RemoveDirectory, because it only works on empty directories/folders. But can use SHFileOperation for this.
Reference -
http://msdn.microsoft.com/en-us/library/1w06ktdy(VS.80).aspx
http://msdn.microsoft.com/en-us/library/bb759795(VS.85).aspx
http://msdn.microsoft.com/en-us/library/bb762164(VS.85).aspx
http://msdn.microsoft.com/en-us/library/1w06ktdy(VS.80).aspx
http://msdn.microsoft.com/en-us/library/bb759795(VS.85).aspx
http://msdn.microsoft.com/en-us/library/bb762164(VS.85).aspx
Posted by -Sobhita Mercy E.
No comments:
Post a Comment