|
|
|||||||
Here is an example script that terminates Internet Explorer and then searches the Registry for all profiles and clears the CACHE of each of the profiles. It DOES NOT remove the INDEX.DAT file as it is in use, but it does clear up a lot of room on the hard drive by deleting all the cache files and folders not in use by some process. This example script requires WMI and was written/tested on KiXtart v4.22 using the 2 UDF files listed below in the code. Code:
|
||||||||
|
|
|||||||
Ok is there a way of getting this script without copying and pasting so I can retain the line breaks. |
||||||||
|
|
|||||||
Copy it then paste it to WORDPAD or MS WORD, then copy again from WORDPAD and paste to NOTEPAD or your Editor and the formatting should remain. ps. This is just an example script and is NOT a secure method of removing cache files if that's what you're looking for. It's just an example. Crap Cleaner is a better free solution if that's what you're really looking for. This gives you an idea though on how to script it, and it to can be improved with better coding. http://www.ccleaner.com/ |
||||||||
|
|
|||||||
Run it through Word or Wordpad to retain the formatting. |
||||||||
|
|
|||||||
Hi, Script does work - fine with IE 6. It leaves behind the contents of the root of temporary Internet Files - anyone know if these are important from a clear cache kind of way (if you do it via IE it kills them). |
||||||||
|
|
|||||||
Hello, This is an OLD script and was only an idea and not really meant as production script. I would recommend using a product like CCleaner if you really need to do this, or where possible install IE7 which has much better removal / cleanup capabilities. Now if you're using KiX 4.53 the script can be written to remove INUSE files on reboot if wanted. |