PDA

View Full Version : delete temps + logoff (W98)



Picapica
05-22-2002, 10:47 AM
Hi, trying to make this work:

deltree /y c:\windows\cookies\*.* >NUL
deltree /y c:\windows\History\*.* >NUL
deltree /y c:\windows\temp\*.* >NUL
deltree /y c:\windows\tempor~1\*.* >NUL
deltree /y c:\windows\temporary internet files\*.*
C:\WINDOWS\RUNDLL32.EXE shell32.dll,SHExitWindowsEx 01

two times the temp net folder because I don't know which to use. Also, haven't found the meaning of '>nul'.

A command window opens while running the deltree commands. Supposedly everything gets deleted, but when I check the temp net folder, the files are still there. I don't get it.

Placed all this in a .bat file. Would there be any reason why .vbs would work better? (of course I'd have to write it differently)

Also, is there a way to place the eventual shortcut to the .bat or .vbs file in between start> 'shutdown' and 'log off', or in the shutdown dialog box?

Cheers

-----------------------------------------------
desde hoy en adelante: la buena vida