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
Page 1 of 1
Logon Script for deleting Temp files
#3
Posted 06 April 2001 - 11:57 AM
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.
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.
Share this topic:
Page 1 of 1

Help










