spudw2k Posted May 30, 2008 Share Posted May 30, 2008 (edited) I put together this little script because I was tired of using workarounds to see the actual folders and files in my temporary internet files. Windows treats the folder special, you can still see the folders if you browse to it via a network share (\\hostname\c$\Documents and Settings\username\Local Settings\Temporary Internet Files\) or via a CMD prompt. After some web searching I found out that this special handling was being brought about from the desktop.ini file in that dir. This script simply checks for the file and deletes it. The file gets recreated every time IE is run, and I believe at login; so the script stays running in the bg. Has an install option if the script is compiled. #NoTrayIcon _InstallTempINETFolderBrowseFix() _TempINETFolderBrowseFix() Func _TempINETFolderBrowseFix() $desktopinifile = @UserProfileDir & "\Local Settings\Temporary Internet Files\desktop.ini" If Not FileExists($desktopinifile) Then Do Sleep(30000) Until FileExists($desktopinifile) EndIf FileDelete($desktopinifile) _TempINETFolderBrowseFix() EndFunc Func _InstallTempINETFolderBrowseFix() If @Compiled Then If Not RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Run",@ScriptName) Then If Msgbox(36,"Automatic Startup","Run at Login?") = 6 Then $destfile = @AppDataDir & "\Tools\" & @ScriptName FileCopy(@ScriptFullPath,$destfile,9) RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Run",@ScriptName,"REG_SZ",$destfile) EndIf EndIf EndIf EndFunc Edited May 30, 2008 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now