benphp Posted June 18, 2009 Share Posted June 18, 2009 This is pissing me off. cd "C:\Documents and Settings\mylogin\Local Settings\Temporary Internet Files" del *.* This doesn't work either: cd C:\Docume~1\mylogin\LocalS~1\Tempor~1 del *.* Nor do variations of it. In fact, if I navigate here in DOS, and do a DIR, it doesn't show the files. WTF? Quote Link to comment https://forums.phpfreaks.com/topic/162834-how-to-delete-temporary-internet-files-with-a-batch-file/ Share on other sites More sharing options...
MadTechie Posted June 18, 2009 Share Posted June 18, 2009 Try this RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8 del "%USERPROFILE%\Local Settings\Temporary Internet Files\" /S /F please note these are for Internet Explorer EDIT: codes for the first line (IE8 ) 255 (Deletes ALL History) 1 (Deletes History Only) 2 (Deletes Cookies Only) 8 (Deletes Temporary Internet Files Only) 16 (Deletes Form Data Only) 32 (Deletes Password History Only) Quote Link to comment https://forums.phpfreaks.com/topic/162834-how-to-delete-temporary-internet-files-with-a-batch-file/#findComment-859279 Share on other sites More sharing options...
corbin Posted June 19, 2009 Share Posted June 19, 2009 On any non web programming related forum, I would straight up assume you were trying to cover porn tracks. Quote Link to comment https://forums.phpfreaks.com/topic/162834-how-to-delete-temporary-internet-files-with-a-batch-file/#findComment-859433 Share on other sites More sharing options...
Daniel0 Posted June 19, 2009 Share Posted June 19, 2009 In fact, if I navigate here in DOS, and do a DIR, it doesn't show the files. Time to upgrade. The latest OS that used DOS was Windows Me. Quote Link to comment https://forums.phpfreaks.com/topic/162834-how-to-delete-temporary-internet-files-with-a-batch-file/#findComment-859444 Share on other sites More sharing options...
benphp Posted June 19, 2009 Author Share Posted June 19, 2009 On any non web programming related forum, I would straight up assume you were trying to cover porn tracks. Funny. I almost posted the reason for it, because I know the reason why most people want to do this. No - I'm using it for testing, and I need to clear my cache a lot without having to go through a menu to do it. PIA. Quote Link to comment https://forums.phpfreaks.com/topic/162834-how-to-delete-temporary-internet-files-with-a-batch-file/#findComment-859650 Share on other sites More sharing options...
benphp Posted June 19, 2009 Author Share Posted June 19, 2009 MadTechie, Thanks for those - I might upgrade to IE7 just to get those to work - they won't work in IE6, apparently. I don't like IE7 though. Quote Link to comment https://forums.phpfreaks.com/topic/162834-how-to-delete-temporary-internet-files-with-a-batch-file/#findComment-859659 Share on other sites More sharing options...
benphp Posted June 19, 2009 Author Share Posted June 19, 2009 Looks like the best option is to install ccleaner - that way I don't need to "upgrade" to the hateful ie7. Quote Link to comment https://forums.phpfreaks.com/topic/162834-how-to-delete-temporary-internet-files-with-a-batch-file/#findComment-859671 Share on other sites More sharing options...
MadTechie Posted June 19, 2009 Share Posted June 19, 2009 MadTechie, Thanks for those - I might upgrade to IE7 just to get those to work - they won't work in IE6, apparently. I don't like IE7 though. The ClearMyTracksByProcess is IE7+ but the command line should work! of course if the files are stored elsewhere then it won't work but try this as a batch file echo off RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8 del "%USERPROFILE%\Local Settings\Temporary Internet Files\" /S /F /Q RD "%USERPROFILE%\Local Settings\Temporary Internet Files\Content.IE5\" /S /Q MD "%USERPROFILE%\Local Settings\Temporary Internet Files\Content.IE5" Quote Link to comment https://forums.phpfreaks.com/topic/162834-how-to-delete-temporary-internet-files-with-a-batch-file/#findComment-859732 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.