hey wat is the registry key to use if i want to get access to files of recent document folder in windows xp ??
HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RecentDocs-this is the registry key probably but not working
i am new to java n i want to get access to all files in "recent doment"folder please provide some solution
In Windows, there is a "Recent" folder in the user profile directory. It contains a list of recent files in the form of shortcuts (.lnk files). Such a folder exists since Windows 2000 or so, I believe. This might perhaps fit your needs -- you just need to locate the user profile folder, and perhaps get current name of the "Recent" folder, as it might be localized in non-English versions of Windows. There should be Windows API functions that provide both of these information.
The registry key you're referring to seems to contain a list of recent files sorted by extension, and I guess they're used by Windows taskbar to provide list of recently opened files for individual applications (for example, when I right-click the MS Word icon pinned to my taskbar, I get a list of recently opened files). I'd say it was introduced in Windows Vista. The values are stored in binary format, though, so it is not as simple as just reading them -- you'd need to decode the binary format.
I guess there might be a Windows API function that would give you access to these information, if there is, it might be easier to use than decoding the registry entries.
subject: Windows registry key for recent documents