Reputation: 435
How does one access the list of recently opened files in Windows 8 using Java?
In other words, what is the path for the "recent document" folder in Windows, which could be passed as argument in constructor of file class to access the files in that folder?
Upvotes: 1
Views: 1328
Reputation:
Try to look here -
C:\Users\YouAccount\AppData\Roaming\Microsoft\Office\Recent
C:\Users\YouAccount\AppData\Roaming\Microsoft\Windows\Recent
To get the actual path by link - see these topics:
Upvotes: 1
Reputation: 15408
It is always inside %USERPROFILE%\Recent
, so using System.env(argument)
String userProfileDir = System.getenv("USERPROFILE")+"\\Recent";
should do the trick.
Upvotes: 1