Logon Script for deleting Temp files

This is a discussion about Logon Script for deleting Temp files in the Customization Tweaking category; Does anyone know a batch script I can put into a Logon Script file to enable me to delete all contents of the c:\temp folder in windows NT 4. 0 machines. It will need to be O/S dependent. . . i. e if they run Win 95/98 or 2000 it will look into the c:\windows\temp or c:\winnt\temp etc.

Customization Tweaking 1789 This topic was started by , . Last reply by ,


data/avatar/default/avatar07.webp

51 Posts
Location -
Joined 2000-02-22
Does anyone know a batch script I can put into a Logon Script file to enable me to delete all contents of the c:\temp folder in windows NT 4.0 machines.
 
It will need to be O/S dependent... i.e if they run Win 95/98 or 2000 it will look into the c:\windows\temp or c:\winnt\temp etc.
 
I'm getting a few PC's that just don't empty the contents of the temp folder. CAD Workstations more then any... It can reach over 1 gig in temp data..
 
Thanks
 
Michael

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Apr 5
Created
Apr 6
Last Response
0
Likes
1 minute
Read Time
User User User User
Users

Responses to this topic


data/avatar/default/avatar16.webp

1615 Posts
Location -
Joined 2000-03-25
try
del %windir%\temp\*.* -Q -F -S
 
I think that should do it

data/avatar/default/avatar25.webp

87 Posts
Location -
Joined 2000-03-06
Here is my version:
 
rd /s /q i:\Temp
md i:\Temp
 
It completely removes the temp folder with files and sub folders, and creates a new one afterwards.
 
I have the temp folder in a separate partition along with the swap file and temp internet files.
 
I have the .bat file in the startup folder.

data/avatar/default/avatar39.webp

3867 Posts
Location -
Joined 2000-02-04
There is no RD in 9x. It's DELTREE.