Is there any transactional file system implementation for Delphi that you know of? It should work at least on Windows XP and higher (and therefore not make use of the new TxF features). It should 开发者_如何学编程allow to execute multiple file operations (delete, move, copy, rename) as a transaction and also provide recovery.
Thanks!
I am afraid your only way around this is to use structured storage. Actually you have a few options here: the free route or the commercial one. Free route: use GPStructuredStorage to do your processing. When you're happy with the result, just copy over your files.
Commercial route: there are a few component packages(for a fee) which also have native Windows drivers. What happens there is that users "see" the files on their hard drive the way they used to, but you're actually storing them in a compound file. I believe a few of them even have some kind of "file history" in place so that you can go backwards in time - but I am not sure about that bit.
Andrea
Perhaps you could use COM Structured Storage.
精彩评论