We help IT Professionals succeed at work.

Dir of Windows7 Library

Hi,

I understand there are windows libraries and you can get to them from the Windows Explorer. But is it possible and how to have like a DIR command from the command prompt show the contents of a library?

like from a command prompt we know we can like:

Dir C:\

Or

Dir C:\Test\*.exe

How can one do a directory of a library?

Any help would be greatly appreciated.

Thanks
Comment
Watch Question

dbruntonQuid, Me Anxius Sum?  Illegitimi non carborundum.

Commented:
Yes, it's possible.

dir C:\users\<username>\Music

where <username> is the User's name.

You can replace Music with Documents or Pictures or Videos
Distinguished Expert 2019
Commented:
that isn't the library item but the users item.. the library could contain

x:\abc
c:\users\username\documents
c:\users\public\documents

Open in new window


Libraries aggregate items from local and remote storage locations into a single view in Windows Explorer.

So the answer is not possible from a command prompt

Author

Commented:
I know I created a library with SLUtil and it functions like a library, however, it does not function the same way as the ex: C:\users\[name]\[created library name].

So, there is no capability of doing that? Takes away from the usefulness then. I can only guess that is why it's not a heavily used in windows.
Distinguished Expert 2019

Commented:
libraries are a user item and tied to explorer and are very useful just not a game changer item.

Author

Commented:
I actually have very, very rarely seem them used or used in the right context/manner even from a UI prospective.

There could have been a lot better use outside of GUI especially being that not everything is GUI especially around a server front.

Author

Commented:
Thanks for the response. Greatly appreciated. Sucks it cannot be done because that would be stellar. Hopefully it will be realized though.