NTFS formatted local drives usually track all file changes in a special system file called Change journal but not many people outside the forensic industry have heard of it. Any small file modification (even a change of readonly attribute) is recorded. To limit its size, the journal is periodically purged, but you should always find records for the latest file changes (a couple of days' worth or better).
I found this codeproject article that has source code and a demo program that lists every single record of the USN journal, but it is not focused enough for file management mishaps. You don't care about the thousands of temporary files that windows creates every second. So I wrote a console tool that examines recent file and folder copies and moves, ignoring the clutter and useless minutia.
Changes in these folders are ignored: ProgramData, AppData, c:\Windows
Click to download CJournal (30 KB)
You need to run it from an administrative (elevated) command console
To run it type CMD in your Start menu, right click on the command prompt search result and select Run as administrator from the menu. You must specify which drive letter you want to examine. There are also some optional command line arguments as such
USAGE: cjournal X [NAME] [/mm] X: drive letter to examine NAME: part of the filename you seek (default: all names) /mm: how many minutes to show (default: last 60 minutes' changes)
For example you can do a basic "cjournal C" to check the last hour of your C:\ drive, or "cjournal E pdf /30" to find changes for PDF files only in the last 30 minutes. Note that not all drives support a change journal:
The most problematic operation is a file move, where the files didn't end up where you intended. Here's what you should do:
DATE EVENT FILENAME 09:17:27 OLD_NAME c:\root\translate.txt 09:17:27 NEW_NAME c:\root\New Folder\translate.txt
Whereas if you moved the file from E:\ to C:\ you must check both C and E drive journals that will reveal entries like:
09:41:30 DELETE e:\documents\mine\Release_unicode\change.txt 09:41:30 CREATE c:\root\change.txt
Note this change appears as a delete followed by a fresh file creation. Good luck!
Post a comment on this topic »