Search
Sunday, August 01, 2010 ..:: Home ::.. Register  Login
   Calendar  
     
  
   Search  
     
  
   Blogroll  
     
  
   Disclosure  
All blog entries are the opinions of the author and do not necessarily reflect the opinions of their employer. All the code presented is for explanation and demonstration purposes only. Any damages incurred to your site and/or data are not the responsibility of the author. Every effort is taken to ensure the code properly compiles, however sometimes there are some hiccups and you might be required to do your own debugging.
     
  
   TechTidBits (Blog)  
Jun 3

Written by: Peter Henry
Wednesday, June 03, 2009 8:22 PM

Sometimes during development with C#, you have to clean up temp directories.  Ones like

"%homedrive%%homepath%\local settings\Temp" or maybe

C:\Users\YourUserName\AppData\Local\Temp

In pruning things one day I found the Windows/Prefetch directory and figuring it had well over 50MB of files, I figured that'd be a great candidate for pruning.  hhhhmmmmmmmm........  

Prefetch Directory in Windows

Bad idea!  Why NOT?!  Check out Google's search for Prefetch findings.

http://www.google.com/search?hl=en&q=windows+prefetch

The first one that comes up (at least tonight) is from velocity reviews titled Computer Support - Clearing windows pretetch files.  The crux is, Windows is using that location to store temp files to help speed up loading applications in the future.  By deleting those files, you might gain that 20+MB of HD space, but at the cost of the next time you load up one of those applications, Windows will have to do a lot more work.  AND on top of that, Windows is JUST going to put stuff BACK into that prefetch directory anyways!  AND besides, if you're 20MB is going to "break the bank" you REALLY need to look at getting a new computer or at a minumum a new hard drive.

Hey, I'm just saying.  But now it's time to grab another coffee and get coding!

 

Resources
Wikipedia: Prefetcher

Copyright ©2009 Peter Henry

Tags:

Your name:
Title:
Comment:
Add Comment    Cancel  
     
  
Copyright 1999-2010 by PCHenry.com   Terms Of Use  Privacy Statement