Bface
Bface

Reputation: 307

Getting Windows 7 Library Locations in Java

I'm trying to list all files found in the Videos Windows 7 library.

First off I'm sorry if this question has been asked before, but for the life of me I couldn't find it. I found this; however, it's for C#. I'm unable to find an analog for Java.

I know the default folder location is here:

C:\Users[USER_NAME_HERE]\Videos

however, the library can contain multiple folders to include. I'm also guessing you could use the registry; however, that's less than ideal.

Upvotes: 2

Views: 214

Answers (1)

Michael
Michael

Reputation: 1239

Libraries are actually XML files, you can access the Video library at

C:\Users\[USER]\AppData\Roaming\Microsoft\Windows\Libraries\Videos.library-ms

The file contains the list of all included folders.

Upvotes: 3

Related Questions