John Smith
John Smith

Reputation: 6207

How to get a content of file which is being written by an application?

This application always create a file when you activate a function (lets say, a log file). This file cannot be opened during the running - but I need its content before application closes (another process uses it, so I cant even view it). Is there a way to "hook" it somehow?

Im working with Delphi, but I accept any other solution. So, summary, I need to know what file application created (it always creates other, but in the same directory) and the content it wrote. Any help appreciated.

Upvotes: 0

Views: 149

Answers (1)

John Smith
John Smith

Reputation: 6207

I found a workaround:

copy the file, and operate on the cloned one:

http://www.howtogeek.com/howto/windows-vista/backupcopy-files-that-are-in-use-or-locked-in-windows/

Upvotes: 2

Related Questions