Win7 Library Tool

Windows 7 libraries are a really useful feature of Windows 7, however unfortunately they arrive in a slighly cut-down form out of the box.  Microsoft decided against exposing some really useful capabilities to users, like adding network locations, pretty much the first thing I tried to do.  You get this message:

windows7libraryerror

Luckily, you can add network locations (and any other un-indexed locations), but it must be done programatically.  MS supply a command line utility slutil.exe, candidate for the worst named executable in history.  Pretty sure it stands for shell_library_util.  Anyway, I decided to write a tool to make it easy to add network locations, and added a few other features as well:

  • Add network (UNC or mapped drive) and any other un-indexed folders to libraries.
  • Backup library configuration, such that a saved set of libraries can be instantly restored at any point (like after a re-install of the OS or for transfer between multiple computers).
  • Create a mirror of all libraries (using symbolic links) in [SystemDrive]:\libraries.  This means you can reference all your files using a much shorter path, and also provides another entry-point to your files in many places in the Operating System (e.g. file open/save dialogs).
  • Change a library’s icon.

win7librarytool

Hopefully it’s easy enough to use, so I don’t have to explain it :)

You can download it for free below.  (Note: This will only run on >= Windows 7.)

Download Installer | Source Code

I must give credit to Josh Smith for his TreeView CodeProject article, upon which this solution is modelled.

The application uses the Microsoft API CodePack to manipulate libraries, which I encourage you to check out if you are writing software to integrate / take advantage of new features in Windows 7.

If you want to learn why and how libraries were introduced in Windows 7, including diving into the .library-ms file format, you can read this MSDN article.

Now featured on Tekzilla!

  1. Hamish says:

    Scratch that – I restarted my machine and all was well. Looks like i was being stupid. C’est la Vie.

  2. xDRAN0x says:

    Great tool, I needed just that. Thanks a lot for creating this.

    I would like to ask you if you have any idea on how to disable the recurring tooltip message above the folder listing :
    “some libraries features are unavailable due to unsupported librairies location”

    Quite annoying :[
    xDx

  3. Vinzzz says:

    Hi Guys,

    How do you index your NAS? Using windows 7 search is useless. You can add the network shares in your library, but they aren’t indexed. Do you use any other software?
    Copernic and X1 are useless aswell, because you can’t select all results found through a search, copy them and for instance paste them in a temporary directory on my desktop.

    Any tips?

  4. xDRAN0x says:

    @Vinzzz

    I don’t run any indexing except Synology’s own indexing service via the Webgui (application->Mediacenter; which took 12h on my setup)

    How is Win7 search useless? it’s not spotlight-fast but still does the work :]
    xDx

    • vinzzz says:

      @xDRAN0x

      My QNAP doesnt have any indexing service. Win7 search is useless while it doesnt search the labels of pictures of non indexed shares. So I still have to rely on good directory structures, while it was just the idea of centralising data and dont care where a file resists…

      :(

  5. Unhappy says:

    Just installed and ran on Win7 x64 and it has deleted all my non user created libraries :(

    • Happy says:

      Scratch that… When the app recreates the libraries it also re catalogues. While it is doing this, still to be catalogued libraries are not visible.
      My own fault for having 2Tb of storage :(

      On the plus side App works great in Win7x64.

  6. Trigon says:

    Finally!

    THANKS A LOT!

    That is what I was looking for!

    Your are my hero of the day ^^

  7. Evil Turnip says:

    Hi

    So if I add my network drives to the library and re build the index my windows search should (when index is complete) find any document I search for on my network drives in my domain…

  8. Evil Turnip says:

    Nope windows search doesnt pick up in the libraries when doing a search you have to manually search the libraries which seems a bit pointless

  9. capnPete says:

    I would like to ask you if you have any idea on how to disable the recurring tooltip message above the folder listing :
    “some libraries features are unavailable due to unsupported librairies location”

    xDx asked this below but I didn’t see a response.

    Anyone having the same problem?

  10. Aethera says:

    Getting an error with this utility: Windows Explorer has a bar at the top that says “Some library features are unavailable due to unsupported library locations. Click here to learn more…” Then the icons for some of the libraries are blank and the contents of the libraries are empty. I restarted Win7 Library Tool and re-imported the existing libraries but the problem persists. In Win7 Library Tool they look fine and I can see the folders with the appropriate icons and their subfolders listed below, but in Windows Explorer they are not working.

  11. nice says:

    Thank You for all the useful posts. They really helped me ! You just got a new subscriber now!

  12. Nick says:

    How is the XML base *.library-ms files created? Is it possible to modify the code of the Win7 Library Tool to add the following line to the .Library-ms files:

    This will prevent the yellow bar information bar “Some library features are unavailable due to unsupported library locations. Click here to learn more…” I know if you right click on the bar, you can prevent this message, but it would be nice to include this feature if possible.

  13. Me says:

    To get rid of the message, just right-click i and click ‘don’t show this message again’ :o )

  14. MengJin says:

    Win7 64bit?

  15. There’s even a video on it that can be seen here:

  16. zmin says:

    external icons only get displayed at 32×32 :( why?

    • Mr. Bungle says:

      They only get displayed as 32×32 in the tool, but in Windows Explorer, they will display at the optimum resolution from the original source. I tested this by adding an external .ico for my ‘coding’ library, which contains icons larger than 32×32 and you can see the result here.

  17. zmin says:

    thanks, the tool messed up my network libraries AND my icons completely..

    • Mr. Bungle says:

      Try killing all explorer.exe processes and then starting a new task from task manager ‘explorer’. It seems there are some bugs in explorer.exe in this dept.

  18. BEBU says:

    Works great!Thank you very much for solving this problem:)

  19. Ray says:

    I ran Win7 Library Tool, told it to create a mirror in C:\libraries, ran.
    Then to my horror, all my libraries are now gone, don’t show up in Explorer. I restarted Explorer, waited (as some posts said they came back after indexing) but no libraries?

    Are the libraries saved somewhere? Can I get them back. Real pain to recreate.

    • Mr. Bungle says:

      Sorry to hear that, it seems there may be an issue on some computers with the creation of the symbolic links in c:\libraries, which I will look into shortly. Assuming that clicking the ‘magic wand’ button in the tool doesn’t show you your libraries, then unfortunately yes they are gone. Next time, take a backup of your library configuration (the disk icon) so you can later restore it (e.g. if you reinstall windows, or login as a different user (or your libraries disappear…)).

  20. Ray says:

    There are just empty folders in C:\libraries.
    Please help.

  21. Rob says:

    Also not working for me (Win 7 Home “Premium” 64bit). Added a mapped drive network location to one library; it now shows a blank icon for the modified library and won’t open or do anything else :(

    Premium == crippled

  22. Rob says:

    Maybe you need to quit explorer and restart but suddenly started working :)

    Another year and I’ll have hacked my way up to the Pro version.

    thanks for the program.

  23. ian says:

    tried this several times – running on Win7 64bit. Each time i try to run the programme i get “Win7 Library Tool has stopped working”. So I can’t get any further… any ideas anyone?

    • Mr. Bungle says:

      Hi Ian, that’s no good! There’s a crash handler built-in to the application, so you normally shouldn’t see that message… If you contact me via the About page we can perhaps troubleshoot it.

      • Tim says:

        I’m getting the same message.

        The first time I ran it I made 1 change and told it to save. It deleted all the libraries and created an empty Documents library pointing to nothing. After 20 minutes of the program sitting there doing nothing and getting a message that this program has stopped responding I forced it to shut down. I should have backed it up, but didn’t.

        I rebooted, ran the program again added back some of the old libraries. Click save. And it appears to be doing the same thing. Stuck. I’m assuming the process should be fairly quick and that it isn’t reindexing the drives while it rebuilds the library.

        I’m going to go off for a few hours and see if it finishes on its own, but I would have thought it would have been done in a matter of a few minutes.

        • Tim says:

          Took a good long while but it created it successfully.

          • Mr. Bungle says:

            It should not take more than a few seconds to create the libraries (no indexing or rebuilding is done), I’ve not seen the behaviour you describe, but it’s certainly possible since the program calls some new Windows 7 APIs. Who knows what Microsoft is doing in the background :(

  24. Jimmy M says:

    Contains Trojan.FakeAlert.5 my BitDefender says.

    What’s up with this? Anyone else?

  25. daragh says:

    Great app, beautifully implemented – thank you!!!

    Now top register my NAS and network printer on homegroup…

  26. Danny Bessems says:

    Hello,

    I’m curious as to how you have managed to suppress the yellow information bar. I’m in the process of rolling out Windows 7 for a client, and we have folder redirection set up, which triggers the information bar. Is it a registry setting I could include in my group policies?

  27. Simon Davies says:

    THANK YOU!

    I have been struggling with this for some time now and your program is simple, easy to follow and worked a treat first time. It is also very useful to be able to save the set up so that, once it is arranged on one PC, I can simply update the settings on the other PCs in my house.

  28. Jonathan Pitt says:

    Kick Ass!

    You rock man!!

    Nice app… now my Linux NAS shares are in da Library!

  29. JHP says:

    I would really like to use your Win7LibraryTool application but I keep getting the following error:

    Win 7 Library Tool has stopped working

    In the Application Event Viewer:

    Win7LibraryTool.exe
    1.0.4.0
    4b3b0471
    KERNELBASE.dll
    6.1.7600.16385
    4a5bdaae
    e0434f4d
    00009617

    Is there a fix for this?

    Thank you,

  30. Lexrst says:

    I would like to simply say thank you. I drives me nuts when MS does this crap. I have a gigabit home network with a Windows Server housing all my data. I do NOT want offline files enabled on my desktop PC, I just want my libraries to point to the server. It shouldn’t require a cool guy like you to write an app just to do that, it should be an option I can enable on my own … IN THE GUI !

    Sheeh!

    Seriously though, thanks!

    -Lexrst

  31. Ton says:

    Great tool, thank you!

    Only minor problem I encountered:
    - I imported all existing libraries, but when you save, existing libraries lose their name and icon. To avoid this, also open the properties of the imported existing libraries and “change” (choosing the old icons and names) them, and then save again.

    Bye,
    Ton

  32. Mapster says:

    I tried the tool a few days ago on a PC using Window 7 Ultimate x64 which has Windows Home Server connector and Windows Media Center Connector. I did take a backup. When I tried to apply the changes it wiped the existing libraries and I got the not responding problem. I tried loading the backup but when I applied the change I go not responding again.
    I tried a system restore but that didn’t work. I reset the libraries to get the main ones back – I then ran Windows Media Center Connector to add it the shared folders from the WHS but it althgough it ran it didn’t work. I then tried to use WMP12 to add the shared music fold back in. It eventually did that and indexed it but now WMP12 won’t respond and Media Center won’t pick up any libraries either.
    I am beginning think I will need to do a rebuild unless there is any way to reset libraries for the whole computer – not just one profile.

  33. Seth says:

    Are the network folders just added to the library without being indexed?
    If they are indexed, how do I re-index them after modifying files in them?

    • Mr. Bungle says:

      The program does not explicitly do any indexing, the API that Microsoft provided just allows adding of libraries. I presume that Windows itself handles the process of indexing where possible. I’m not aware of any way to manually kick off indexing.

  34. Stu says:

    Great program which worked well up until ~2 months ago. I have a QNAP TS-119 with SMB shares accessed from my Win7 Ultimate x64 PC. Unfortunately, as a couple of other posters have pointed out, the program instantly crashes every time I try to run it now. Have uninstalled/reinstalled and tried 1.05 and 1.06 but it just won’t run. There have been all the usual Windows updates but very little else has changed on my PC.

    What info can I give you to help diagnose this issue?

    • Stu says:

      Well, it’s been solved. I think the program assumes you have Microsoft .NET Framework 3.5.1 installed. I didn’t and now it’s been added back into Windows, the Win7 Library Tool is working again :-D
      I had previously removed Microsoft Games for Windows Live several months ago. I recalled that it had installed .NET at the same time so I also removed that as I don’t like bloat. Anyway, that’s the reason I deleted it and the reason Win7 Library Tool stopped working. My bad, sorry !!

      Being constructive, can v1.07 check it has .NET available before crashing? If so maybe a useful error msg would help. Just a thought. Still a great program.

  35. Aliellavake says:

    Очень долго ломал голову . не думаю бы пересмотрел то,

  36. Henk-Jan says:

    Hey, Thanks a lot !!
    Rather new in Win7 ans i was searching for hours… untill i found youre tool… really great !

  37. That was a nice blog post,I anticipate many more post from you.

  38. Dorien says:

    Great tool, worked in a flash!

  39. Gusdawg says:

    Works great! Thank you!

  40. Maximlian says:

    Sorry for asking this question, but I didn’t understand something about NAS:
    If I have a NAS working on Linux (I was thinking to buy a Buffalo terastation), the shares can be included through your fantastic program; but are they also indexed completely???
    It is really important for me (If it is not possibile I’ll not buy a NAS)!
    Thank you!!! :)

    • Mr. Bungle says:

      Unfortunately, no they will not be indexed. This tool just allows you to browse/access the contents of your NAS inside Windows 7 libraries. There may be another way to enable indexing but i have not investigated any.

  41. lawvol says:

    First of all, I love this utility — it is absolutely fabulous, and I appreciate you making it available for all of us out here in web world.

    I am, however, having issues with v.1.04 and 1.06 lately and I was wondering if you could help.

    The program starts, but when I try to load the existing libraries, I get an error message and it closes.

    I am running Win7 Professional 64-bit

    Here: is the error log information from Windows:
    =====================================
    Log Name: Application
    Source: Windows Error Reporting
    Date: 6/9/2010 11:31:27 AM
    Event ID: 1001
    Task Category: None
    Level: Information
    Keywords: Classic
    User: N/A
    Computer: [omitted for privacy]
    Description:
    Fault bucket 1117560722, type 5
    Event Name: CLR20r3
    Response: Not available
    Cab Id: 0

    Problem signature:
    P1: win7librarytool.exe
    P2: 1.0.6.0
    P3: 4ba46ffb
    P4: mscorlib
    P5: 2.0.0.0
    P6: 4a27471d
    P7: 349e
    P8: e1
    P9: System.IO.FileNotFoundException
    P10:

    Attached files:
    C:\Users\[omitted for privacy]\AppData\Local\Temp\WERFB40.tmp.WERInternalMetadata.xml

    These files may be available here:
    C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_win7librarytool._90c8cb983327ad9c629d747112de14b3fea3210_220d05ea

    Information 6/9/2010 11:31:27 AM Windows Error Reporting 1001 None
    =====================================

    Any thoughts on how I can get this back up and running? Feel free to email me if you need more info or want the files referenced in the log above.

    Again, thanks for making this great app, and I hope to have it running again soon.

  42. xDRAN0x says:

    Hello there,
    me again complaining :]

    Please check :
    http://forum.synology.com/enu/viewtopic.php?f=111&t=25250&p=101776#p101776

    Do you think the new version of your tool could cause this? I have not changed anything on my NAS and the only thing I can remember of is updating my Zorn Software too.

    Best regards,
    xDRAN0x

  43. PowerBear says:

    How come when I create a Library for a Network Drive with the Windows7 Library Tool it’s nested within the following folder structure ?

    libraries => =>

    I’m unable to see it when I go to the Libraries area instead it’s nested within the folder listed above under the drive in which windows is installed ?

  44. Andrew says:

    Thanks for this. Now I can mount my VortexBox NAS into windows libraries.

  45. Mike says:

    Thanks for this excellect tool. I generally like Win 7 a lot, but with Libraries Microsoft basically built half a bridge and left it hanging out there in the sky. It took you to finish the bridge and bring users with network shares all the way home. Microsoft really should pay you for saving them from an army of irate Win 7 users!

  46. Daniel says:

    Nice tool, documents library is enhanced to network folder. Pic, Video and Musik library, which have not been modified, appear as an empty icon, clicking on them has no effort. Any idea?

    Regards
    Daniel

  1. [...] Understanding the Libraries Feature in Windows 7 Understanding the Libraries Feature in Windows 7 The new libraries feature in Windows 7 makes it easier to manage your files and folders. Today we take a look at how to access libraries, how to use them, and how to include network locations to the libraries as well. The libraries feature in Windows 7 provides a central place to manage files that are located in multiple locations throughout your computer. Instead of clicking through a bunch of directories to find the files you need, including them in a library makes for quicker access. Access Libraries To access the libraries in Windows 7, type libraries into the search box in the Start Menu and hit Enter. The default libraries in Windows 7 will open up in Explorer which are Documents, Music, Pictures, and Videos. Anytime you’re in Windows Explorer, you’ll be able to access libraries from the Navigation Pane. Using Libraries In these examples we’ll take a look at the Documents Library, but the procedures will work for any library you want to add locations to. If you’ve been working in Windows 7 for a while and storing documents to the My Documents folder, when you open the Documents Library, you’ll see those documents. Some applications install folders in the My Documents folder by default and you’ll see those as well. What if you have documents stored in a folder other than My Documents? You need to add it to the Documents Library. There are a couple of ways you can go about it. Right-click on a folder and select Include in library from the context menu, then choose the Documents Library. Keep in mind that when you add a folder to a library, that folder is still in it’s original location. Or when you have the folder containing your documents open, select Include in library and choose the library to put them in from the dropdown. Here we take a look at the Documents library that contains files that are located in different places throughout the hard drive, including some on another partition. You can also remove items from libraries as well. When you’re in a library click on the locations link. The Documents Library Locations window opens up and from here you can add or remove locations. Create New Libraries The default libraries are all well and good, but if you really want to take advantage of this feature, you’ll want to create your own. While in the libraries directory click on the New library button and give it a name. In this example we made a new library called Work Projects. The first time you open it you’ll be prompted to include a folder. Browse to the location with the files you want to add then click Include folder. Now the files included in that folder will show up in the new library. After you’ve created some libraries they’ll be added to the list to select from. Add Network Locations While libraries are a handy new feature, it’s not perfect. Not all folders can be added to libraries as Microsoft has stuck some rules on them. You can pretty much add anything from a local drive, including other volumes or partitions. External USB drives formatted as NTFS or Fat32 can be added as well. Things get kind of weird when you’re trying to add network and non-indexed locations. Thankfully there’s a handy free utility you can use that makes adding network locations a lot easier. Win7 Library Tool is small and straight forward to use. Just click on the Create a new library button. Then add the network location you want included in the library. Notice this tool will also allow you to easily change the library icon which is a neat additional feature. In this example we’ve added a home network share that contains music files to a library named MP3 library. Conclusion This should help get you started using Libraries in Windows 7, which at first might take some getting used to. Once you understand how they work and start creating your own, you’ll find they’re actually pretty useful. Once you get going, you’ll find the Win7 Library Tool makes adding network locations a snap. How about you? Do you use libraries in Windows 7? Leave a comment and let us know what you like or don’t like about the feature. Download Win7 Library Tool [...]

  2. [...] for a better way to manage Windows 7’s Libraries? Win7 Library Tool makes it a snap to add folders, change icons, and more. Veronica has all the details on [...]

  3. [...] please also add the option to export and import library configurations as implemented in the Win7 Library Tool? 3. Search support for Distributed File System (Dfs) Distributed File System was once one of [...]

  4. [...] there’s a handy free utility you can use that makes adding network locations a lot easier. Win7 Library Tool is small and straight forward to use. Just click on the Create a new library [...]

  5. [...] selecting the New Library link that appears in the toolbar.A better solution in our opinion is the Win7 Library Tool which is more comfortable to use thanks to its graphical user interface. The tool adds the option [...]

  6. [...] waar zelfs op de site van Microsoft naar verwezen wordt. De bekendste hiervan zijn slutil.exe en de Win7 Library Tool. De toepassing van deze tools in een bedrijfsomgeving echter niet aan te bevelen. De garantie is [...]

  7. [...] better solution in our opinion is the Win7 Library Tool which is more comfortable to use thanks to its graphical user interface. The tool adds the option [...]

  8. [...] soluzione più avanzata è quella di usare lo strumento Win7 Library Tool che è più rapido da usare e offre le opzioni per aggiungere cartelle di rete o non indicizzate [...]

  9. [...] A nice FREE Tool to manage Windows 7 Libraries. Download from here [...]

  10. [...] Il programma lo potrete scaricare gratuitamente dal sito zornosoftware. [...]

  11. [...] there’s a handy free utility you can use that makes adding network locations a lot easier. Win7 Library Tool is small and straight forward to use. Just click on the Create a new library [...]

  12. [...] KB): skydrive | 官方网站 | 来自小众软件 | uushare | dropbox | Go [...]

  13. [...] the tool at http://zornsoftware.talsit.info/?p=3 Posted in Windows Tags: libraries « Tweak the Windows 7 taskbar with Taskbar Overlord [...]

  14. [...] in Uncategorized. trackback Recently I’ve had an issue with Windows 7 library errors.  Here’s a tool that can help!  especially if trying to index network locations. 0.000000 [...]

Leave a Reply