SYSUTILS's SHOWLIB

Apr 2, 2011
1,442
10
54
North Carolina, USA
Code:
[C:\Users\csgal\OneDrive\Documents\My Files\Robb]showlib /?
SHOWLIB library_name (e.g., "Documents") ... show targets of a library

[C:\Users\csgal\OneDrive\Documents\My Files\Robb]dir /a: /b /s \*library-ms
C:\Users\csgal\AppData\Local\Microsoft\Windows\BackgroundSlideshow\Slideshow.library-ms
C:\Users\csgal\AppData\Roaming\Microsoft\Windows\Libraries\CameraRoll.library-ms
C:\Users\csgal\AppData\Roaming\Microsoft\Windows\Libraries\Documents.library-ms
C:\Users\csgal\AppData\Roaming\Microsoft\Windows\Libraries\Music.library-ms
C:\Users\csgal\AppData\Roaming\Microsoft\Windows\Libraries\Pictures.library-ms
C:\Users\csgal\AppData\Roaming\Microsoft\Windows\Libraries\SavedPictures.library-ms
C:\Users\csgal\AppData\Roaming\Microsoft\Windows\Libraries\Videos.library-ms
C:\Users\Public\Libraries\RecordedTV.library-ms
C:\Windows\WinSxS\amd64_microsoft-windows-s..f-recordedtvlibrary_31bf3856ad364e35_10.0.19041.1_none_424794eb37ce3944\RecordedTV.library-ms

[C:\Users\csgal\OneDrive\Documents\My Files\Robb]showlib Documents
C:\Users\csgal\OneDrive\Documents

[C:\Users\csgal\OneDrive\Documents\My Files\Robb]showlib RecordedTV
TCC: (Sys) The system cannot find the file specified.
 "C:\Users\csgal\AppData\Roaming\Microsoft\Windows\Libraries\RecordedTV.library-ms"

Any thoughts if SHOWLIB should check \Users\Public\ as well as %AppData% for the relevent files?

Code:
Module:      c:\tcmd\Plugins\SysUtils64\sysutils64.dll
Name:        SYSUTILS
Author:      Vincent Fatica
Email:       moc.rr.yncwt@snigulp
Web:
Description: Various utilities
Implements:  _ISFG,_LASTINPUT,_MOUSEX,_MOUSEY,_NPIDS,_PERFCOUNT,_PERFFREQ,_PIDS,_RDTSC,_SESSTIME,_TICKCOUNT,_VOLUME,@CLUSTERSIZE,@CONNECT,@DOSDEVICE,@EXEBITS,@EXETIME,@FGWIN,@ICMP,@ISAPP,@ISPID,@KEYTIME,@KNOWNPATH,@LINKSTO,@MODULE,@PIDEXE,@PPID,@PSTAT,@PSET,@SAFE,@UP,@VIDEO,CLICK,E
XPORT,KEYTIMES,LINKSTO,MODULES,MOVEWIN,OPENCP,PRNTRS,PROPS,PSTAT,REGENUM,SETPRIORITY,SHELLEX,SHOWLIB,SS,SSMON,QTRACE,SYSHELP,TIMESYNC,UPTIME,VOLUME,WAITWIN,WHICHWIN,*KEYHANDLER
Version:     2017.328  Build 92423

[C:\Users\csgal\OneDrive\Documents\My Files\Robb]pdir /(a c dy-m-d th:m:sd ikm q r s zc fpn) "c:\tcmd\Plugins\SysUtils64\sysutils64.dll"
___A_____________  0% 2017-03-28 09:25:09.000 102110221 DA826D320E1E9D33E7CA6EC9D0BB2B3A DESKTOP-C293QAU\csgal 4E836857          132,608 C:\tcmd\Plugins\SysUtils64\sysutils64.dll
 
May 20, 2008
11,431
99
Syracuse, NY, USA
I dunno. I know little of libraries. The code for SHOWLIB was my variation on something I found with Google.

When I use EXPOLRER to see my libraries (C:\Users\vefatica\AppData\Roaming\Microsoft\Windows\Libraries) I do not see the things in C:\Users\Public\Libraries. That is, Explorer doesn't show "Recorded TV" among my libraries.
 
Apr 2, 2011
1,442
10
54
North Carolina, USA
Am I mistaken that \Users\Public\ is a Global user? %UserProfile% is the current user?
 
May 20, 2008
11,431
99
Syracuse, NY, USA
Well - forget libraries. How would user CSGal access user Public's files?
I have read that everyone has access to Public's files. That would make sense, given the name. Doesn't CSGal have access? As I read the perms, the group "INTERACTICVE" has quite a bit of access.

1629916713147.png
 
Jun 2, 2008
359
4
Well - forget libraries. How would user CSGal access user Public's files?
There's a PUBLIC environment variable. I'm in IT (including desktop support). Anything (mostly shortcuts) we want to appear on everyone's desktop we put in the C:\Users\Public\Desktop folder. Standard users have read access (and can't delete those shortcuts, so don't appear to be a part of the INTERACTIVE group, which isn't in the standard list of groups) and admins have write with a UAC prompt.
 
Jun 2, 2008
359
4
Good question. I've never dealt with that. On my computer, that library is empty by default, but can have folders added to it. Doing so adds entries to the RecordedTV.library-ms file, which is an XML file. The path to the actual folder is between <url></url> tags. Here's my RecordedTV.library-ms file after adding C:\Test:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<libraryDescription xmlns="http://schemas.microsoft.com/windows/2009/library">
  <name>Recorded TV</name>
  <ownerSID>S-1-5-21-239012932-1334602983-18896419-1007</ownerSID>
  <version>6</version>
  <isLibraryPinned>true</isLibraryPinned>
  <iconReference>imageres.dll,-1008</iconReference>
  <templateInfo>
    <folderType>{5fa96407-7e77-483c-ac93-691d05850de8}</folderType>
  </templateInfo>
  <propertyStore>
    <property name="HasModifiedLocations" type="boolean"><![CDATA[true]]></property>
  </propertyStore>
  <searchConnectorDescriptionList>
    <searchConnectorDescription>
      <isDefaultSaveLocation>true</isDefaultSaveLocation>
      <isDefaultNonOwnerSaveLocation>true</isDefaultNonOwnerSaveLocation>
      <isSupported>true</isSupported>
      <simpleLocation>
        <url>C:\Test</url>
        <serialized>MBAAAEAFCAAAAAAAADAAAAAAAY0gAAQDQAAAAsRPEhT5ZedA4sPSRVemXHwG9QEOln51BAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAgMAUAwHQB+TQDi66kGEiiNCAsCMw0ZKAECAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZB9CBsyCLFUj2sWhZeelPlIAxAAAAAAAZMVoZCBAUV2c0BAA6AQCAQAAv7bGTFamZMVoZ6CAAAQaABAAAAAOBAAAAAAAAAAAAAAAAAAAlXbHBQFAlBwcAQHAAAAFAsDADAgDA8uvBAAFA8BUg/E0gouOpBhoYjAArADMdmBAvMkOcBAAAAAAAAAAAAAAAAAAAAAAAAAAAQBAAAAOAAAAcAAAAEAAAAAHAAAAvAAAAAAAAAwNAAAATAAAAMAAAAAVIKvhQAAAA80UAMkOcRVZzRHAAAGAAAwAAAAoYBAAAAAAAAQauNHcpJ3buBAAAAAAAAAASjmA18i+I+Um/5yo8MK7CvtQTCqPFweEFqCIHd0agNt0oJQNvoPiPl5fuMKPjyuwbL0kg6TBsHRhqAyRHtGYTXEAAAQCAAAo5AAAAEzUQNVsW0GRt2IcIdKSA5Cp9gHjdAAAAgGAAAAAIBAAAkF0LEwKLsUQNazaFm55V+EAAAAAAAAAAAAAAAA</serialized>
      </simpleLocation>
    </searchConnectorDescription>
  </searchConnectorDescriptionList>
</libraryDescription>
 
Jun 2, 2008
359
4
In Windows Explorer, browse to C:\Users\Public\Libraries, right click the Recorded TV library and click Properties.

Btw, I'm on a different computer now and it already has a folder in that library that points to C:\Users\Public\Recorded TV. But it shows up in Windows Explorer as C:\Users\Public\Public Recorded TV because of the desktop.ini file in that folder.
 
Apr 2, 2011
1,442
10
54
North Carolina, USA
@TEA-Time I did that and it went to "C:\Users\Public\Recorded TV\Sample Media" - where there is a recorded TV file. If it's not empty - why does it not show up under Libraries for my user profile?
 
Jun 2, 2008
359
4
Good question considering the Desktop folder contents do show up for everyone. Seems like an oversight that Public's libraries don't show up too. But then again, there are other folders that their contents don't show up for every user either, such as Downloads and Favorites.
 
Jun 2, 2008
359
4
I doubt it since even a standard user can edit the folder list for the Public Recorded TV library. I just don't think it's built into Windows Explorer to include Public's libraries when looking at your own.
 
  • Like
Reactions: Charles G
Apr 2, 2011
1,442
10
54
North Carolina, USA
@vefatica :

How about maybe adding /A to show all matching libraries? Sort of like WHICH /A tells all matching files for command.

/A would look into Public=user....
 
May 20, 2008
11,431
99
Syracuse, NY, USA
@vefatica :

How about maybe adding /A to show all matching libraries? Sort of like WHICH /A tells all matching files for command.

/A would look into Public=user....
I'll look into it but it might be hard. SHOWLIB relies on the environment variable APPDATA and, beyond the APPDATA differences, the path to public's RecordedTV.library-ms is very different from the path for the current user. Using /P (to get public libraries) might be easier.
 
Apr 2, 2011
1,442
10
54
North Carolina, USA
@vefatica thank you very much! Feel free to post the link to :

"The code for SHOWLIB was my variation on something I found with Google." !!!
 
May 20, 2008
11,431
99
Syracuse, NY, USA
"The code for SHOWLIB was my variation on something I found with Google."
Did I say that? If I did, it's probably true. But I can't find that quote. Where is it? What do you want a link to?

When I hard-code c:\users\public\libraries, and try SHOWLIB, all I see is.

Code:
v:\> showlib recordedtv
shell:public\Recorded TV

That could be because there's nothing in that library. Does anyone know how to put a folder in that library so I can see if SHOWLIB works?

I have some libraries of my own (Documents, et c.) but I don't see them anywhere in explorer. How do I make them visible?[/code]
 
May 20, 2008
11,431
99
Syracuse, NY, USA
I'm not sure this is kosher ... but it seems like it might be the way it SHOULD be done. Here's what I did.

While in **MY** library directory, I let the MKLINK /= dialog construct the following command

Code:
c:\users\vefatica\appdata\roaming\microsoft\windows\libraries> MKLINK /H RecordedTV.library-ms c:\users\public\Libraries\RecordedTV.library-ms

That was a hard-link. I don't know about other kinds of links.

Now, in Explorer,

1630117664924.png


If I right-click a folder and choose "Include in Library", I can put it in RecordedTV. And I have

1630117892286.png
 

Similar threads