Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: Library - Set Save Folder


Library - Set Save Folder

How to Set the "Default Save Location" Folder for a Library in Windows 7
Published by Brink
18 Nov 2008
Published by

How to Set the "Default Save Location" Folder for a Library in Windows 7

information   Information
This will show you how to set an included folder in a Windows 7 library as the default save location folder to save everything new, that is copied or moved into that library, to that folder location. By default, everything in a library is saved into a Personal user folder.

Note   Note
Libraries let you access and arrange items from one or more folders quickly without moving them from their original location. Libraries themselves don't store your files or folders. Instead, they point to different locations on a hard disk or external drive attached to your computer. This gives you easy access to a category of files no matter where they are stored. For instance, if you have music files on your hard disk and on an external drive, you can access all of your music files from within the "Music" library.


For more information about Windows 7 Libraries see:
Tip   Tip
The full path to the hidden Libraries folder is below.

C:\Users\(User-Name)\AppData\Roaming\Microsoft\Windows\Libraries

OR

%AppData%\Microsoft\Windows\Libraries





Here's How:
1. Open Windows Explorer, and click on Libraries in the navigation pane. (see screenshot below step 2)

2. Right click on the library (ex: Music) that you want to set the default save included folder for, and click on Properties. (see screenshot below)
Library - Set Save Folder-libraries.jpg
A) Select (hightlight) the included folder that you want to set as the default save to folder, and click on the Set save location button. (see screenshot below)
Name:  Properties-1.jpg
Views: 7038
Size:  87.2 KB
B) Go to step 4.
OR

3. Open the library (ex: Music) that you want to set the default save included folder for. (see screenshot below step 2)
A) Click on the # Locations toolbar button. (see screenshot below)
Library - Set Save Folder-library.jpg
B) Right click on the included folder that you want to set as the default save to folder, then click on Set as default save location. (see screenshots below)
Name:  Set-1.jpg
Views: 6886
Size:  111.8 KB
4. Click on OK. (see screenshots below steps 2A or 3B)
NOTE: You will notice that the new default save location folder has a check mark next to it.

5. Close the library window when done. (see screenshot below step 3A).
NOTE: You will not see this if you did step 2 instead of step 3.

6. Close the Libraries window when done. (see screenshot below step 2)

That's it,
Shawn





Related Tutorials

.

17 Oct 2010   #1
xarden

Windows 7 Enterprise
 
 

Hey Shawn,
Something I've just found that's tripped me up.

If the default save location is on another drive and that drive is removed, it will no longer appear in the library.
When trying to create a new document, you may end up with a 'File System Error (512)', as a default location does not exist.
You'll then need to revisit step 3A or 4B to set one.

My System SpecsSystem Spec
.

17 Oct 2010   #2
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Xarden,

Correct, if you were to remove the drive where the default save to location is located, then you would need to set a new save to location to stop getting the error.
My System SpecsSystem Spec
06 Jun 2012   #3
bioNuke

Windows 7 Ultimate x64 SP1
 
 

Hey guys.

This may be a little outside the scope of this article - it's to do with .NET programming not detecting a custom documents folder.

I've set up my documents library to a different location (B:\Libraries\Documents) as outlined in the steps above. I've attached a screenshot of the locations window so you can see it's set up right.

Everything works ok except an application I wrote in VS C# .NET that saves & loads a file from the Environment.SpecialFolder.Personal folder (which retrieves a dynamic path to the my documents folder). This application still reads/writes to the C:\Users\Username\Documents folder for some strange reason. This may be outside the scope of this thread but I'm just curious as to how it arrives at this destination and how to fix this - Obviously the folder path it fetches is dynamic as it gets the currently logged in username, but how come it doesn't get the right documents path? :S


Attached Thumbnails
Library - Set Save Folder-docs-library.jpg  
My System SpecsSystem Spec
06 Jun 2012   #4
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello CJ,

You might see if setting your program to save to the location below may work instead. It's the path to the Documents library folder itself. From there, it would actually save to whatever you had set as the default save to location in the tutorial.

%AppData%\Microsoft\Windows\Libraries\Documents.library-ms

Hope this helps,
Shawn
My System SpecsSystem Spec
06 Jun 2012   #5
bioNuke

Windows 7 Ultimate x64 SP1
 
 

Thanks Shawn, I'll give that a bash tonight after work!
My System SpecsSystem Spec
06 Jun 2012   #6
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

You're welcome. I hope it'll work for you.
My System SpecsSystem Spec
07 Jun 2012   #7
bioNuke

Windows 7 Ultimate x64 SP1
 
 

Well as usual it wasn't quite that easy!!!

I tried several ways to load that folder, but it seems .NET applications do not like trying to load it directly. (When I tried to create a folder in the docs it said that folder already exists, which it didn't)
I ended up doing a bit of googling/prowling through stack overflow and found this neat little API that helps with libraries and such: WindowsAPICodePack

So long story short Environment.SpecialFolder.Personal gets the common documents repository for the current user.
I had to use the ShellLibrary component of the above API, use it to find the documents library as follows:

Code:
ShellLibrary Documents = ShellLibrary.Load("Documents", Path.Combine(Environment.GetEnvironmentVariable("appdata"), @"Microsoft\Windows\Libraries\"), false);
Then get the full path of the library's default save folder and then simply continue as per normal from there...
Code:
string ProgramDir = Path.Combine(Documents.DefaultSaveFolder, "NZB Watcher");
string OptionsFileName = Path.Combine(ProgramDir, "options.xml");
And Huzzah!!! It's now working perfectly! Thanks for your help mate
My System SpecsSystem Spec
07 Jun 2012   #8
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Tha'ts great news bioNuke. I'm happy to hear you got it sorted out. To bad they could just make it easier to do.
My System SpecsSystem Spec
Comment

 Library - Set Save Folder





Tutorial Tools



Similar help and support threads for2: Library - Set Save Folder
Windows 7 Tutorial Category
Solved Library - display order, arrange/sort by, default save location General Discussion
Solved Cannot save excel files in a redirected folder unles I use save as Network & Sharing
Solved Unable to save to the library folders General Discussion
Setting default save location to last save folder General Discussion
HELP! Pic folder set up in the library Music, Pictures & Video
Library Folder Sorting Customization

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:43 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33