Build Your Own Arcade Controls Forum

Main => Everything Else => Topic started by: CCM on December 18, 2013, 11:41:44 am

Title: Export recent documents list
Post by: CCM on December 18, 2013, 11:41:44 am
Anyone know if you can export your list of recent documents containing the full path to a text file?

I am using Windows 7 Pro with Office 2010.   I can navigate to %userprofile%/recent   to bring up the list of recent documents.  I want to be able to export this list and have it include the full path to the document and the date the document was last modified.

Any suggestions?

Thanks
Title: Re: Export recent documents list
Post by: lilshawn on December 18, 2013, 12:07:48 pm
not sure what you are after, but you can execute a "dir > filename.txt" command which will create a text file of the directory contents in a new "filename.txt".  :dunno


Title: Re: Export recent documents list
Post by: CCM on December 18, 2013, 12:23:21 pm


Strange thing is if I go to the search bar in the start menu and type:   %userprofile%/recent   it opens a window that shows all recent docs and files,  but when I drop to a command prompt and navigate to the recent folder and do a dir I get no results...
Title: Re: Export recent documents list
Post by: lilshawn on December 18, 2013, 02:14:43 pm


Strange thing is if I go to the search bar in the start menu and type:   %userprofile%/recent   it opens a window that shows all recent docs and files,  but when I drop to a command prompt and navigate to the recent folder and do a dir I get no results...

oopsie  :lol

http://en.wikipedia.org/wiki/Special_folder (http://en.wikipedia.org/wiki/Special_folder)

i belive the "recent documents" is actually stored as entries in the registry.

you should still be able to write a script to extract it though. (i'm not real good with that) I know you can create a .reg file to add/remove entries from the registry...it stands to reason you could get it out.
Title: Re: Export recent documents list
Post by: CCM on December 18, 2013, 02:28:29 pm
Interesting!   That at least points me in the right direction!    Thanks!
Title: Re: Export recent documents list
Post by: CCM on December 18, 2013, 03:20:24 pm
I was able to extract the registry entries of the last 50 Word and 50 Excel documents that were accessed.   I just extracted the registry to a text file and I was able to see the full path of the documents.   I was then able to view the recent documents (%userprofile%/recent)  to get the last date the docs were accessed.   

Thanks again!
Title: Re: Export recent documents list
Post by: pbj on December 18, 2013, 04:08:04 pm
So who are you spying on and why?