2 buttons (Empty temporary internet files and temp folder)

My sugestion is put 2 new buttons by default!

1 button to empty Temp Folder (i already have) but is good to new people that come to use for the first time this program.

and

1 button to empty temporary internet files (this i dont have), i need learn how make this button work!

I would have thought that whatever button you are using to empty the temp folder, you could just make a copy of it and change the path of the folder it deletes files from?

I have tried unsuccessfully to modify the EmptyTemp User Command I posted in the Buttons And Toolbars forum to work in Temporary Internet Files (TIF). Here are the largest issues:

Windows stores cookies as well as temporary Internet files in the TIF folder. The Windows Cookies folder actually lists "pointers" (for lack of a better understanding on my part) to the actual cookie files, but the cookies files themselves are actually stored inside TIF. Using this Opus raw command:Go /internetcachewill display several cookies files among the temporary internet files.

When the user clicks the Delete Files button in Internet Options, cookies are spared, and all web page files are deleted. This is why there is a second button to Delete Cookies.

I know from reading about Windows temp folders etc, that TIF really is more like a database than a real folder. There are several hidden "folders" (read that as database folders) inside of TIF. There is an index.dat file (and some other .dat files) that are closely related to cookies files.

I've learned from personal experience that deleting a cookie file outside of the Windows method or without cleaning up its index.dat entry can, at times mess up the relationship between any remaining cookies and the index.dat file. So much so, that Windows XP will start storing the cookies folder under the C:\Windows folder on that users next attempt to run IE. (I've learned all this the hard way when I was learning how to re-route Windows XP profile folders.)

So one concludes that any Directory Opus command to empty TIF must select all files except for the cookies, and delete them, in order to be safe. I tried to first see if I could select just the cookies (in order to invert the selection to get everything but cookies), but there are issues trying to do this. As displayed in Directory Opus, most cookie file names can appear in any of these formats:[ul][li] Cookie:username@somesite.com/[/li]
[li] somesubsitename/[/li]
[li] somesubsitename[/li]
[li] _somesubsitename[/li][/ul]Cookie files, as listed in the Cookies folder, end in ".txt", but they do not end in ".txt" when displayed in the TIF folder. Thus, selecting "*.txt" will not work (besides some Internet files are .txt files). I played around with Opus selection criteria and the only pattern that I found to select most of the cookies was:Select PATTERN */ This worked simply because most cookies end with a "/" character (but not all). Look at that list above, and you can see that there really is no pattern to select all cookies by. Thus, after inverting the selection, there still would be a few cookies selected, which could create issues later.

Whenever just one cookie is selected, Windows will prompt the user to confirm deleting Cookies. This means emptying TIF can't truly be automated with current Opus RAW commands. This is really something that needs to be done at a deeper programming level than Opus raw commands provide, perhaps with Windows API calls or something. I'm not sure how programs like CCleaner and SpyBot Search & Destroy clean up cookies and Temporary Internet Files, but both of those do it very well.

My advice is to try out CCleaner.

If you want it to install without the Yahoo! toolbar, download the Slim build (English only) or the Basic build (multi-language) from the CCleaner Download Builds page.

Read through its help, configure it, and set up a Opus toolbar button to run CCleaner with the Auto switch like this:"%ProgramFiles%\CCleaner\ccleaner.exe" /auto Run like this, CCleaner will clean everything with no user dialog (though it deletes index.dat and other .dat files after you reboot the PC).

I created the EmptyTemp user command because I often need to extract files from application installation packages, to repackage them inside silent installation packages. I was doing the steps manually like 10 times day. There is only one restriction in the %temp% folder—I couldn't delete locked files. But this was of such minimal impact, that it didn't matter. I use CCleaner (or Windows Clean Disk) for true junk file clean up.

Thanks, i go test with the CCleaner method :wink: i think is the better way.