Mohd Faizan Khan
Mohd Faizan Khan

Reputation: 435

How to access recently opened files in Windows 8?

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

Answers (2)

user1134181
user1134181

Reputation:

Try to look here -

  • MS Office Docs - C:\Users\YouAccount\AppData\Roaming\Microsoft\Office\Recent
  • Opened by Explorer - C:\Users\YouAccount\AppData\Roaming\Microsoft\Windows\Recent

To get the actual path by link - see these topics:

Upvotes: 1

Sage
Sage

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

Related Questions