Firstly, thanks to those who helped with the deleting files question i had. Works like a charm! All files delete nicely, and with a little tinkering on my part, they also delete from all subfolders.
My problem now, involves deleting folders. The RmDir only works when a folder is empty, else it errors. I have one big long chain of subfolders within the folder i want to delete. Does anyone have an idea on some sort of looping structure that will go through this chain (to the lowest level) and delete each and every folder. Even bettter would be some sort of function that would wipe out the whole folder structure irregardless of whats in there.
Any ideas folks??
..and thx!
My problem now, involves deleting folders. The RmDir only works when a folder is empty, else it errors. I have one big long chain of subfolders within the folder i want to delete. Does anyone have an idea on some sort of looping structure that will go through this chain (to the lowest level) and delete each and every folder. Even bettter would be some sort of function that would wipe out the whole folder structure irregardless of whats in there.
Any ideas folks??
..and thx!