Om du har dina dokument på en nätverksmapp och vill lägga till den i bilblioteket Dokument, och kör windows 7, och inte vill göra den tillgänglig offline. Då sitter du illa till, det går inte.

Om du väljer att göra den tillgänglig offline som är enda sättet, då får fyller du disken med innehållet från din nätverksmapp. Det är ingen höjdare om du har en NAS med 2TB filer, samtidigt som du har 1TB disk på din dator 🙂

Här hittade jag ett program som hjälper dig att lägga till en nätverks share utan att göra den tillgänglig offline!

Här är filen IncludeAnyInLibrary som jag laddat ner, utifall orginalsidan försvinner.

Så här skriver han på sin sida:



Include any folder to Windows 7 Libraries.

Additional to the mentioned ways of
a) ”Offline Files” and
b) creating symbolic links
there seems to be another way of adding folders to the libraries by editing the XML files directly which contain the library information.

These files are usually stored in %AppData%\Microsoft\Windows\Libraries\ and are called <Libraryname>.library-ms

Since solution a) isn’t an option due to disk space and somehow I don’t like option b) as well I started to code a little commandline program that edits the *.library-ms files for me.

Programm download:
Source download (Visual Studio Express 2010):



IncludeAnyInLibrary.exe -add -library Documents -folder \\server\share\folder
Adds the network folder \\Server\share\folder to the Documents library.

IncludeAnyInLibrary.exe -remove -library Documents -folder \\Server\Share\folder
removes a folder from a library

more parameters:
-quiet: Needs to be the first parameter and surpresses all error messages.
-position 2: Instead of adding the new folder at the buttom of the list it inserts in after the existing second entry.
issupported: adds a network share so that Windows Search uses the server based index.

Attention: At the moment the tool is very simplistic and I can’t guarantee that it always works 100% correctly. For me – Windows 7 Pro x64 with all updates installed as of 09. June 2010 – it seems to work fine so far.

New (17.Juni.2010): Folders are checked if they exist, if not or if you dont have access they are not added.

Additionally you can now add or remove the Windows knowfolders e.g. knownfolder:{FDD39AD0-238F-46AF-ADB4-6C85480369C7}=My Documents, See details below). This was important to me to get rid of the local Public folders from each library at first logon – who needs this in a network?
Known folders are not checked for existance, anything where the -folder paramerter starts with knownfolder: is added.

I dont know yet but I assue that search in Windows 7 may not work well or even not work at all since the folders are probably not indexed.

A big help in understanding the libraries was this site:, the tool offered there is much more advanced than mine but it seems less usable for batch files.



Details to the knownfolders (This seems to match in an English Windows 7 installation, not tested on anything else yet)

My Music:
Public Music:

My Documents:
Public Documents:

My Videos:
Public Videos

My Pictures:
Public Pictures:


E-postadressen publiceras inte. Obligatoriska fält är märkta *