deleting folder containting files
-
Hi all, I have a folder and in that i have some files, i want to delete that folder with files and for doing so i am using RemoveDirectory api.... but it is not deleting my folder... How can i do it???? Thanks in advance
-
Hi all, I have a folder and in that i have some files, i want to delete that folder with files and for doing so i am using RemoveDirectory api.... but it is not deleting my folder... How can i do it???? Thanks in advance
-
But i want to do it through coding...
-
Hi all, I have a folder and in that i have some files, i want to delete that folder with files and for doing so i am using RemoveDirectory api.... but it is not deleting my folder... How can i do it???? Thanks in advance
See Here[^] Edit: Sorry, that was the CE-version. See Here instead[^] An interesting piece of information from that page is: To recursively delete the files in a directory, use the SHFileOperation function.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
-
Hi all, I have a folder and in that i have some files, i want to delete that folder with files and for doing so i am using RemoveDirectory api.... but it is not deleting my folder... How can i do it???? Thanks in advance
See SHFileOperation/rmdir or deletefile.
-
Hi all, I have a folder and in that i have some files, i want to delete that folder with files and for doing so i am using RemoveDirectory api.... but it is not deleting my folder... How can i do it???? Thanks in advance
have you only checked the API Documentation[^] ? "lpPathName : The path of the directory to be removed. This path must specify an empty directory, and the calling process must have delete access to the directory. " down further the page, you can see this : "To recursively delete the files in a directory, use the SHFileOperation[^] function." next time, google before asking please
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
But i want to do it through coding...
While you can do what Shirani's suggests via code, it's definitely the wrong aproach.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
have you only checked the API Documentation[^] ? "lpPathName : The path of the directory to be removed. This path must specify an empty directory, and the calling process must have delete access to the directory. " down further the page, you can see this : "To recursively delete the files in a directory, use the SHFileOperation[^] function." next time, google before asking please
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
I like to Delete folder in any case even if other applications or other users are accessing the same folder. Forcefully i like to delete the Folder. I receive Error 32 when the function SHFileOperation(). Can any one tell me how can i acheive this.