Home All Groups Group Topic Archive Search About

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

Author
28 Mar 2005 3:38 PM
alexharris@aol.comNEWS
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

Author
28 Mar 2005 5:15 PM
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
Author
28 Mar 2005 5:54 PM
alexharris@aol.comNEWS
Crouchie1998 wrote:
> 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