Hi, I hope someone can help me with this? I would like to delete directory (say is called MyDirectory) and all files in it. Say I don't know drive or path. How to do it? Is delete file work for delete directory?
Posted on 2000-11-11 13:36:00 by czDrillard
cz, Its normal stuff, you list the files in the directory, change the atributes if needed then delete the files. When the directory is empty, you then delete the directory. If you have existing subdirectories, the operation will fail so if you want to delete a directory that has subdirectories, you will have to delete them first. hutch@pbq.com.au
Posted on 2000-11-15 07:38:00 by hutch--
hutch--, im not sure, but isnt there the SHFileOperation API with which you can delete directorys and subdirectorys without deleting the files in them first? im not really sure, but i think i've seen smth like that before in a vb program. cya
Posted on 2000-11-24 07:53:00 by [SaFc0n]