If you're producing an application, which leaves temporary files
that (for some strange reason) you don't clean up, you can
create a handler to automate a clean-up job and integrate it
into the Windows shell.
End-users seems happy about these kinds of integrations, though a
.BAT file in most cases could have done the job.
The Source Code
Simple simple simple. Implements a COM object generated by the ATL class wizard, then implementsIEmptyVolumeCache
and
IEmptyVolumeCache2
interfaces and tweaks the
registry registration code.
Customize your own clean-up handler. Remember to change the GUID if you modify this sample.
Source Code Dependencies
Microsoft Visual C++ 6.0Microsoft ATL Library
Download Files
![]() | Source Code (40 Kb) |