• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 36. Windows Script Host > Tips from the Windows Pros: Cleaning Up .TMP ...

Tips from the Windows Pros: Cleaning Up .TMP and .BAK Files

I've provided a script to clean up all your .TMP and .BAK files, and all files and folders whose name starts with ~, from every drive and every folder on your computer. This is a handy utility to supplement the Disk Cleanup tool provided with Windows 2000.

Caution

This script also cleans up any mapped network drives, as well as local drives. If you don't want it to clean network drives, you can remove the three lines from for each drv in drvs down to its next statement, and replace it with a single call cleanup C:\.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint