Click here to Skip to main content
15,892,480 members
Articles / Programming Languages / C++

Clean Up Handler

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
9 Jun 2002CPOL2 min read 84.5K   1.7K   30  
A shell extension to delete temporary files (e.g visual c++ intermediate files).
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

The class factory (IClassFactory), the Unknow methods and the registration process are taken from the microsoft sdk example.

Cleanup Sample
--------------

The Cleanup sample implements a Disk Cleanup Handler shell extension. The 
sample implements the IEmptyVolumeCache interface, which is used by the 
Disk Cleanup Manager (CLEANMGR.EXE) on Windows 98 and Windows 2000.

The sample can be registered by using the REGSVR32.EXE utility:

    REGSVR32.EXE <DLL PATH>\clean handler.DLL

or unregistered:

    REGSVR32.EXE /U <DLL PATH>\clean handler.DLL

Once the extension is registered, it can be accessed by starting
CLEANMGR.EXE or by clicking the "Disk Cleanup" button on a drive's
Properties dialog in Explorer. The Properties dialog can be accessed
by right-clicking on a drive in Explorer and selecting "Properties"
from the context menu or by clicking on a drive in Explorer and
selecting File | Properties.

for detailed help, go to http://cleanhandler.sourceforge.net

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Canada Canada
Begin programming in pascal some 8 years ago, then to assembly and C, after seeing that pascal is out of fashion. play a little with Delphi and C++ Builder, to see that was enough.


A little mess with other technologies, HTML, CGI, DHTML, PHP.

Comments and Discussions