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 CodeSimple simple simple. Implements a COM object generated by the ATL class wizard, then implements
IEmptyVolumeCache2interfaces and tweaks the registry registration code.
Customize your own clean-up handler. Remember to change the GUID if you modify this sample.
Source Code DependenciesMicrosoft Visual C++ 6.0
Microsoft ATL Library
|Source Code (40 Kb)|