Quote:

1. If folder is located on D: E: etc won't work
2. If folder has been renamed won't work
3. Will not support WinNT upgraded systems with profiles typically in C:\WinNT\Profiles
4. Does not address registry cleanup like Christophe's does.





Ok Doc,
You are OBVIOUSLY a better KiXtart coder than me. I know that and I bow to it. But I would like to address your four points.

1.& 3. If you change the parameter in the line
$files = dirplus()
You can send the script anywhere you want. ie: c:\winnt\profiles or \\somecomputer\e$\documents and settings
2. If the Network Admin doesn't know that the directory holding the profiles has been renamed, You've got WAY bigger problems than this script not working.
4. You are absolutly correct. But then I know I'm not good enough a KiXtarter to go suggesting registry hacks to ANYONE. I leave that to you and the other moderators.

I know my script doesn't just go in, delete directories, and get out. It seemed to me though that what he was looking to do was pick and choose which profiles to delete whenever he ran the script.