CitrixMan, my version was lower than yours so I downloaded the newest version from Microsoft's site. Now I'm running verion 5.2.3790.1060.

Here's what I get on my screen:

E:\>type test.scr
shell '\\cmarti2ksrv\e$\Delprof /d:20'
E:\>kix32 test.scr

Delete inactive profiles on \\CMARTI2KSRV? (Yes/No) n

Nothing deleted.


E:\>delprof /d:20

Delete profiles on \\CMARTI2KSRV that have not been used in the last 20 days? (Y
es/No) n

Nothing deleted.


E:\>


Check out the difference in the output betwen running it from a script and running the delprof command from the command line. I only want to delete unused profiles older than 20 days...

Sealeopard,
Thanks for the code. I hadn't tried to delete the profile through kix because I didn't know what all it involved.

Thanks..