Windows libraries as a paper folder! (for Win 7+)

Discuss and share scripts and script files...
highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Windows libraries as a paper folder! (for Win 7+)

Post by highend »

Hi,

Update (17.07.2014) II:
v1.1.1
• Added: - Only open one tab with paper:Libraries. If it exists, switch to it
Update (17.07.2014) I:
v1.1.0
• Changed: - Build paper:Libraries from scratch on each invocation
• Removed: - All unnecessary code for maintaining the perm $libDB variable
A picture of the new output from GetLibraryPaths.exe:
Unbenannt.png
Unbenannt.png (21.41 KiB) Viewed 6593 times

Update (16.07.2014):
v1.0.3
• Changed: - Modified check for showing folders from the user "public"
- GetLibraryPaths.exe enhanced
It now resolves UNC paths (only those that point to the local pc!)
Additional information added (<GUID> || <UNC path>)
- Regex change for runret()
What this script does:
It creates a permanent variable that contains a list of all your Windows libraries together
with the last modified date of the library file
and the folders that the library contains.

Every time you invoke the script it checks if it has to a.) add new libraries or b.) delete
libraries (that have been physically removed on the system).


It should work for all Windows systems from Windows 7 up to Windows 10 / Server 2019.

The script:
Current version:
Show_Libraries_v1.1.1.zip
(6.35 KiB) Downloaded 685 times
Old versions:
v1.1.0
Show_Libraries_v1.1.0.zip
(6.22 KiB) Downloaded 230 times
v1.0.3
Show_Libraries_v1.0.3.zip
(6.82 KiB) Downloaded 247 times
Count = 74
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60548
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Navigate Windows Vista+ libraries

Post by admin »

Wow! :appl:

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Navigate Windows libraries (from Vista to 8.1)

Post by highend »

New version: Download from the first post

/*
******************************************************************************
@Changelog:
v2014.04.05 Build 09.36
• Added: - "1-9 | a-j - " in front of each lib name for easier navigation
• Changed: - $libDB is always sorted alphabetically
- Reworked the regexes for the $libDB cleanup to acommodate for
spaces in the library / file names

******************************************************************************
*/
One of my scripts helped you out? Please donate via Paypal

Marco
Posts: 2347
Joined: 27 Jun 2011 15:20

Re: Navigate Windows libraries (from Vista to 8.1)

Post by Marco »

From http://msdn.microsoft.com/en-us/magazine/dd861346.aspx
<serialized> is the actual representation of a location in a library that is a serialized ShellLink object.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Navigate Windows libraries (from Vista to 8.1)

Post by highend »

New update: Use a paperfolder instead of a popupmenu xD
:beer: :beer: :beer:
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4139
Joined: 28 Feb 2012 19:27

Re: Navigate Windows libraries (from Vista to 8.1)

Post by klownboy »

Hi highend and thanks for this paper folder update. I noticed I had 2 folders for Pictures, Music and Documents, etc in the resultant tab. I assume it's because the script looks at the contents of my user folder, in my case, "Ken" as well as the "Public" folder. I was also curious if you tried to use the new SC "runret" on line #39 in lieu of "run" and "| clip".
Thanks again,
Ken
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Navigate Windows libraries (from Vista to 8.1)

Post by highend »

Hi Ken,
I assume it's because the script looks at the contents of my user folder, in my case, "Ken" as well as the "Public" folder.
No, not technically. You've got them because the .xml library file(s) contain (by default) an additional entry for the public user.
I was also curious if you tried to use the new SC "runret" on line #39 in lieu of "run" and "| clip".
That's already included in the v2014.07.01 Build 01.33 version.

I've pushed a new version.
On first start it'll ask you if you want to show libraries for the user "public". "No" is the default. Just enter "yes" (without quotation marks) and hit OK if you want to list them. Upper / lowercase doesn't matter.

If you choose "no" library folders from that user will be skipped.

Better? *g*
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4139
Joined: 28 Feb 2012 19:27

Re: Navigate Windows libraries (from Vista to 8.1)

Post by klownboy »

Hi highend, I probably shouldn't have, but before trying your latest rev 2014.07.01 Build 15.54, I deleted the Libraries paper folder and now when I run the script it doesn't re-create it. My logic was to start fresh with the new change. :roll: Maybe due to the revision involving the check for library changes since the last run? I also deleted the perm variable saved to see if that made a difference, but no, it still wouldn't re-create the library paper folder. It creates the new tab "Paper:Libraries", but it's empty and it also creates the perm variable, $libDB when I run it. Any ideas on how I can set things back to square 1 or reset it? Thanks,
Ken
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Navigate Windows libraries (from Vista to 8.1)

Post by highend »

Hi Ken,

I've delete the Libraries.txt file manually and unset the $libDB variable.

Whenever I run the script again, the paper folder is recreated correctly.

I didn't change that much in the script, mainly the question for the user
if he wants to show libs from the public user and the routine that creates
the necessary folders.

Set a step; command before

Code: Select all

    // Remove empty & duplicate items
    $libList = formatlist($libList, "ed");
and look through all variables before you continue.

Content of $libList?
Conent of $paperFile?

I can't see a reason why it shouldn't work atm.
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4139
Joined: 28 Feb 2012 19:27

Re: Navigate Windows libraries (from Vista to 8.1)

Post by klownboy »

OK highend, found the issue - writing to the libraries.txt file failed, though I received no message even when stepping - all the data was there but the file location was incorrect or invalid. You should stop using "<xypath>\data\..." because many people have the data in the xy folder itself and don't have or use an "xyplorer\data\" folder. Instead of: $paperFile = "<xypath>\Data\Paper\Libraries.txt"; use: $paperFile = "<xydata>\Paper\Libraries.txt"; That will catch both groups of users - those with and without a data folder. :)

I forgot that on the earlier revision I had scanned through the script, caught that and changed it before use and forgot about it on your latest revision.

And yes, it does work great now as it did before now with just he single entries for music, documents, etc. Now for some :ball:

Thanks,
Ken
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Navigate Windows libraries (from Vista to 8.1)

Post by highend »

Good catch, Ken!

Fixed with the latest version.

The new one does set a specific column layout after opening the paper folder tab...

Name, Path, Modified, Created

"Path" should help to see where each folder points to.

I hope that's a sensitive default?
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4139
Joined: 28 Feb 2012 19:27

Re: Navigate Windows libraries (from Vista to 8.1)

Post by klownboy »

Thanks highend, with v2014.07.01 Build 22.53, I noticed in the perm variable $libDB that I have 5 Libraries. The first is "1920x1080 Wallpaper|2014.05.15.11.48.14|" along with 4 standard ones Douments, Music, Pictures, and Video. Note: What I quoted above is all that shows on that variable line - there's no folder information like the other 4 Libraies (e.g., Music|2014.05.15.11.48.18|C:\Users\ken\Music?C:\Users\Public\Music"). I made the "1920x1080..." library awhile ago as a compilation of photographs in that aspect ratio. I'm not sure why it shows or is picked up in the variable but not in the "paper:Libraries". :?: I deleted the folder and started over and got the same results. By the way, on both runs, I wasn't prompted to make the decision on the public libraries. So as not to confuse, that 1920x1080 library did not show in previous revisions either. Thanks,
Ken
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Navigate Windows libraries (from Vista to 8.1)

Post by highend »

Hi Ken,

please send me the zipped content of your:
C:\Users\<your user name>\AppData\Roaming\Microsoft\Windows\Libraries

folder via e-mail.

I have e.g a library called "Subversion" (created by TortoiseSVN) that doesn't
contain any folders. This one is filtered out correctly.

I haven't seen a case like the one that you describe so I need the .xml files to check it out.

--

Which value has the $shoPublicLibs variable in your version of the script?
If it's "unknown" you should get the question. If not it's skipped.
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4139
Joined: 28 Feb 2012 19:27

Re: Navigate Windows libraries (from Vista to 8.1)

Post by klownboy »

Highend, I sent you the zipped libs and some additional background information.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Navigate Windows libraries (from Vista to 8.1)

Post by highend »

Hi Ken,

fixed the detection of older libraries (shlib doesn't recognize them).
Download the latest version.

I've deleted the .zip file you've send to me :)
One of my scripts helped you out? Please donate via Paypal

Post Reply