How can I automatically delete the contents of the users' temp folders?

A

alexharris

How can I automatically delete the contents of the users' temp folders
with the login script. The server is Windows 2000 with an AD and Win
2000 and XP PCs.


So far I have worked out
echo y | del %systemdrive%\"Documents and Settings"\%username%\temp*.*
but this doesn't include the switch for the local settings folder and
if I try and add it, the command fails.


Help!


Thanks


Alex
 
C

Crouchie1998

I have a script that runs my own VB.NET application that completely deletes
all files in the user's Temp folder. This was found to be the easiest way I
have found to do this
 
A

alexharris

Crouchie1998 said:
I have a script that runs my own VB.NET application that completely deletes
all files in the user's Temp folder. This was found to be the easiest way I
have found to do this

Any chance of a copy . . . please?

Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top