Skip navigation.

A Different World

We have just one world but we live in different ones.

February 2006

( Monthly archive )

IBM Thinkpad 600E bios mod for processor update

Temp Folder Erazer (AutoIt script)

;Temp Folder Erazer AutoIt script by somh

#NoTrayIcon

; Only works on 2K/XP and above.
if (@OSTYPE <> "WIN32_NT" Or @OSVersion == "WIN_NT4") Then
    MsgBox(48,"Temp Folder Erazer","This utility only works on 2K/XP and above.",5)
    Exit
EndIf

Func rDir($p)
    $c = "rd /s /q """ & $p & """"
    Run(@ComSpec & " /c " & $c, @TempDir, @SW_HIDE)
    ;DirRemove($p, 1)
    DirCreate ($p)
EndFunc

rDir (@UserProfileDir & "\Local Settings\History")
rDir (@UserProfileDir & "\Local Settings\Temporary Internet Files")
rDir (@SystemDir & "\config\systemprofile\Local Settings\Temporary Internet Files")
rDir (@TempDir)
;rDir ("D:\Program Files\Globallink\Game\share\Advert")
;rDir ("D:\Program Files\Globallink\Game\share\glshow")

FileRecycleEmpty()

$pid = ProcessExists("conime.exe")
If $pid Then ProcessClose($pid)