Hi all,
I want to create a program that keeps track of which applications I open during the day (e.g., Word, Excel, Chrome, RunRev, iTunes, etc.), the number of minutes each application was open, and possibly how many different files were opened by that application. I use Vista, and realize that the "Recent" folder effectively tells me this. However, I have been frustrated at not being able to sort items in that folder by type (it only stores shortcuts). Plus, I think it would be nice to see screen shots of each program in action. I assume that I will need to use some shell commands, but I know anything about those really. Any suggestions?
- Mark
ADDENDUM: One approach might be to tap into whatever textfile (I assume its a textfile) each application uses to remember the most recent files it has opened. That wouldn't give me the amount of time used, but just having a page with links to 10 or 15 most recent files for EACH of the applications I use daily (all in one location) would be a huge step in the right direction. Of course, I don't know what files each program uses to store this info ... Does anyone?
Recent files by type
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
You might find it worth examining the registry, which will hold a lot of information about the MRU lists for different file types. If you poll the registry keys and check whether things change you might be able to parse what's new and track accordingly.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs is the key to look at (at least on WinXP here) and it holds binary data, so you will have to do some decoding to be able to parse results.
As well as that key which holds the "big picture list" there are subkeys for all file extension types below, so you can see the MRU list just for all the .doc or .rev files, for example. These will be a REG_BINARY numeric key, with value data in binary from which you can extract the .lnk information.
The MRUListEx key holds the list order of the items keyed, so if that changes you know that the most recently used file has changed, you can then see which one it was by checking the first item in that key data, and then looking up the key that corresponds to.
HTH
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs is the key to look at (at least on WinXP here) and it holds binary data, so you will have to do some decoding to be able to parse results.
As well as that key which holds the "big picture list" there are subkeys for all file extension types below, so you can see the MRU list just for all the .doc or .rev files, for example. These will be a REG_BINARY numeric key, with value data in binary from which you can extract the .lnk information.
The MRUListEx key holds the list order of the items keyed, so if that changes you know that the most recently used file has changed, you can then see which one it was by checking the first item in that key data, and then looking up the key that corresponds to.
HTH