Deleting contents of a profile without deleting the directory itself
I was wondering if anyone knew of a way to delete the contents of a profiles without deleting the profile directory itself. For instance, if an example of my profiles were z:/profiles/students/08/08smitha i would want to delete the contents of the folder 08smitha without deleting the 08smitha folder itself. Keep in mind there are more than just one profile in that directory and I don't want to run a script for each username/profile. I want something that will delete the contents of all the profiles folders but not the profile folder itself. Sorry to be so redundant. If anyone could please help.
June 26th, 2007 11:27pm

But you still want to delete everything in each folder? You don't want to skip a folder here and a folder there? In that case a script would do it for you, just tell it which folders to leave. Tell me if you need help with a recursive script-thingie, I'll need some more info.
Free Windows Admin Tool Kit Click here and download it now
June 27th, 2007 9:31am

Did you answer this question, if so may I have a copy of your script/solution.Thanks a lot
July 8th, 2008 6:34pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics