Compatible Support Forums: Logon Script for deleting Temp files

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Logon Script for deleting Temp files

#1 User is offline   mickbench 

  • journeyman
  • Group: Members
  • Posts: 51
  • Joined: 22-February 00

Posted 05 April 2001 - 11:28 AM

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
0

#2 User is offline   Four and Twenty 

  • Pooh-Bah
  • Group: Members
  • Posts: 1623
  • Joined: 25-March 00

Posted 05 April 2001 - 02:59 PM

try
del %windir%\temp\*.* -Q -F -S

I think that should do it
0

#3 User is offline   Corinthian 

  • journeyman
  • Group: Members
  • Posts: 87
  • Joined: 06-March 00

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.
0

#4 User is offline   DosFreak 

  • Carpal Tunnel
  • Group: Moderators
  • Posts: 3885
  • Joined: 04-February 00

Posted 06 April 2001 - 12:24 PM

There is no RD in 9x. It's DELTREE.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users