Monday, August 31, 2009

create batch file to delete prefetch files

the below steps are about how to create batch file to delete prefetch files automatically, follow these steps.
  • Create new text document
  • Now type del C:\Windows\Prefetch\*.* /Q inside the text document
  • Go to file menu, click save as (this will open save as dialog box)
  • In the dialog box, under save as type select all files from the drop down menu
  • In the file name field type a name you prefer with .bat extension (ex-prefetch.bat)
  • Click save
  • Now double click the file to test, you will find that there's no more prefetch files left in the folder.


  1. Thank You it work for me. please could you provide the other temporary files like temp, recent documents.