Hi,

I have a problem - when I close my web browser it clean up cache files.
The same if is process terminated by tool like debugger or task manager.
Only known way how to do it is break power, but...
So is there a way how to bypass filesystem or kill process at once?

Thanks for any useful advices in advance!

>only C++ has the power do things like that!
Riiiiight. So do you just want to kill a process or do you want to clear your browser cache?

What I want is to freeze content of cache folder. Just like I would pull power cord - in this case all files keep as they are and after reboot I can copy them. TerminateProcess works perfectly but obviously there is at least one next process which always clean cache up.

> What I want is to freeze content of cache folder.
> Just like I would pull power cord - in this case all files keep as they are
> and after reboot I can copy them

wouldn't it be simpler to just take a snapshot (copy the contents to a backup) of the cache folder when you want it rather than wait till after reboot?

Yes, it would. But unfortunately, these files are "in use" so I have to either write a paralel filesystem working at sector level or find some way how to deal with NTFS locks.

This article has been dead for over six months. Start a new discussion instead.