I found a major part of my problem. I need to add "\c$" after the workstation name and before the path. I was just giving deldir("\\workstation\temp") for example and that won't work since temp is not a share! Duh. I am finding some other problems in the logic. It decends down a path and deletes it, but then it gets stuck trying to go parallel. I will have to look at a little closer.

As far as delprof.exe is concerned, I don't think it can work in my case. I've never used it, so I may be wrong. However, from the syntax on Microsoft's web site, it looks like it either interactively asks you which profiles to delete or it deletes based on age. I want to be able to delete a specific profile. Ideally just one profile. If I can do that, I can string it together and do multiple ones.

I would like to be able to do single profiles to assist when we rebuild someone's profile. I would like to do all profiles other than the required ones on the system for computers such as in conference rooms. With so many people logging in, the local file system often gets filled and we have to go in and manually clean it up. I just wanted to be able to script this.

I'll let you know what I find out about fixing deldir.

Regards,

Brad V