Mnb93
28th May 2007 11:26 UTC
Delete Temp, Temp Internet Files and History
I have been trying to code something that deletes /REBOOTOK temp, temp internet files/history <--- Paranoia... :)
C:\Documents and Settings\Steven\Local Settings\Temporary Internet Files C:\Documents and Settings\Steven\Local Settings\Temp C:\Documents and Settings\Steven\Local Settings\History
Is where they are on my machine, if that helps?
However I know you can put them on another drive some how...
Is there a variable that contains the path to these?
All I found was this: h**p://nsis.sourceforge.net/Working_Out_Shell_Folder_Locations
I am not sure how I can mod that script to work with the above?
Also, how may I "delete a file" which when it error (because it is not found), no error is shown?)
Afrow UK
28th May 2007 12:06 UTC
You can't remove the actual folders because they are locked by the operating system. You have to delete the contents, so use
Delete "path\*.*".
As for not displaying error messages in the log window; you can't. You can only stop output by using SetDetailsPrint none.
Stu
Anders
28th May 2007 20:14 UTC
You are not supposed to delete the History and TIF like this, they are not normal folders, but special shell folders, there is an api you could probably call with the system plugin
Mnb93
29th May 2007 12:38 UTC
Thanks for the info, does anyone know how?
Afrow UK
29th May 2007 14:32 UTC
http://www.codeproject.com/system/Cleanup_API.asp
You'll need to implement this into a plugin.
Stu
Mnb93
9th June 2007 09:23 UTC
How could I do this?
Is there any wiki page that can guide me through it?
tigerx
13th June 2007 14:15 UTC
easy
use Revo Uninstaller to delete, remove temp, internet, history and all tracking files and registry entries. It also has a Evidence Remover - will remove any deleted data and it will be impossible to recover. It's a Freeware also ;)