Change "open" default behavior

S

Sam

No matter what program I use to open files, it always starts in My Docs. Is
there a reg tweak to change this default to open on the root drive?

Thanks
Sam
 
R

Ramesh, MS-MVP

S

Sam

That is a good tweak I've been using it for awhile. I was actually
referring to the Open dialog box. It seams like to matter what
program I use, when I go to File - Open, it always starts in My
Docs. I rarely use this folder and was hoping there was a way to
change the default to the root drive. Or perhaps a way to delete
the folder all together.


| Explorer.exe Command-Line Options for Windows XP:
| http://support.microsoft.com/?kbid=314853
|
| Have Windows Explorer Default to the %SystemRoot% Drive When
Started:
| http://support.microsoft.com/?kbid=257518
|
| --
| Regards,
|
| Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
| Windows® XP Troubleshooting http://www.winhelponline.com
|
|
| | No matter what program I use to open files, it always starts in
My Docs. Is
| there a reg tweak to change this default to open on the root
drive?
|
| Thanks
| Sam
|
|
|
 
R

Ramesh, MS-MVP

Hi Sam,

This setting is not configurable, afaik. Programs usually query the shell
folder paths (My Documents, My Pictures etc) in the registry, and set it as
the start folder for the Common Dialog box.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


That is a good tweak I've been using it for awhile. I was actually
referring to the Open dialog box. It seams like to matter what
program I use, when I go to File - Open, it always starts in My
Docs. I rarely use this folder and was hoping there was a way to
change the default to the root drive. Or perhaps a way to delete
the folder all together.


| Explorer.exe Command-Line Options for Windows XP:
| http://support.microsoft.com/?kbid=314853
|
| Have Windows Explorer Default to the %SystemRoot% Drive When
Started:
| http://support.microsoft.com/?kbid=257518
|
| --
| Regards,
|
| Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
| Windows® XP Troubleshooting http://www.winhelponline.com
|
|
| | No matter what program I use to open files, it always starts in
My Docs. Is
| there a reg tweak to change this default to open on the root
drive?
|
| Thanks
| Sam
|
|
|
 
T

tcebob

In Help, under "My documents" redirecting (I have not tried this -- but I will.) If this
doesn't survive in a readable format, check Help.


Folder Redirection
You can use the Folder Redirection extension to Group Policy to redirect certain special
folders to network locations. Special folders are those folders, such as My Documents and
My Pictures, that are located under Documents and Settings.

Folder Redirection is located under User Configuration in the Group Policy console tree.

Where?

a.. policy name Policy
b.. User Configuration
c.. Windows Settings
d.. Folder Redirection
Folder Redirection options
There are several basic options for Folder Redirection, as described in the following
paragraphs. For each basic option, there is an advanced version of that option. The
advanced version provides for finer control by allowing redirection that is based on
security group membership.

Create a folder for each user under the root path
Rather than having to type a Universal Naming Convention (UNC) path, such as
\\server\share\%username%\MyDocuments, an administrator can simply type the path to the
share, such as \\server\share, and Folder Redirection automatically appends the user name
and the folder name when the policy is applied. With Folder Redirection, administrators do
not have to be familiar with environment variables, and errors and spelling mistakes are
minimized.

For more information, see To redirect special folders to the root directory and To
redirect special folders to the root directory based on security group membership.

Redirect to home directory (My Documents only)
With this option administrators can redirect a user's My Documents folder to the user's
home directory. This option is intended only for organizations that have an existing
deployment of home directories and that want to maintain compatibility with their existing
home directory environment. Use this option only if you have already deployed home
directories in your organization.

For more information, see To redirect My Documents to the home directory and To redirect
My Documents to the home directory based on security group membership.

Redirect to a specific path
With this option administrators can redirect users' folders to an alternative local drive
or partition, or they can enter unusual configurations that are not anticipated by the new
Folder Redirection user interface. Functionally, this works in exactly the same way as the
Windows 2000 Folder Redirection user interface.

For more information, see To redirect special folders to a specific path and To redirect
special folders to a specific path based on security group membership.

Redirect to the local user profile
With this option administrators can redirect the selected folder back to the default
location in the local user profile, for example: %userprofile%\<Folder Name>.

For more information, see To redirect special folders to the local profile location and To
redirect special folders to the local profile location based on security group membership.

Note

a.. In the properties dialog box for a special folder, changing the setting to Not
Configured does not cause the special folder to be redirected back to its default
location. Not Configured simply leaves the redirected folder where it is. If you want to
redirect the special folder back to the original, default user profile location, use one
of these procedures.
For more information about using Folder Redirection, see the Folder Redirection section in
Best practices.

Windows allows folders to be redirected as described in the following table.

Special folder Notes
Application Data A Group Policy setting controls the behavior of Application Data
when client-side caching is enabled. Look in User Configuration\Administrative
Templates\Network\Offline Files in the Group Policy console tree.
Desktop Desktop can be redirected independently of all the other special folders.
My Documents See Advantages of redirecting My Documents for details.
My Documents\
My Pictures My Pictures can be redirected independently of My Documents, or it can
be made to follow My Documents (to remain its subfolder whenever My Documents is
redirected), as it does by default. The default behavior is recommended unless you have a
specific reason (such as file share scalability) for separating My Pictures from My
Documents. If these folders are separated, a shortcut takes the place of the My Pictures
folder in My Documents.
Start Menu When Start Menu is redirected, its subfolders always follow.

Advantages of redirecting My Documents
Some of the following benefits pertain to redirecting any folder, but redirecting My
Documents can be particularly advantageous because this folder tends to become large over
time.

a.. When roaming user profiles are used, only the network path to the My Documents
folder is part of the roaming user profile, not the My Documents folder itself. Therefore,
its contents do not have to be copied back and forth between the client computer and the
server each time the user logs on or off, and the process of logging on or off can be much
faster than it was in Windows NT 4.0.
b.. Even if a user logs on to various computers on the network, his or her documents are
always available.
c.. Offline File technology gives users access to My Documents even when they are not
connected to the network. This is particularly useful for people who use portable
computers. For more information, see To make a file or folder available offline.
d.. Data that is stored on a shared network server can be backed up as part of routine
system administration. This is safer because it requires no action on the part of the
user.
e.. The system administrator can use Group Policy to set disk quotas, limiting the
amount of space that is taken up by users' special folders.
f.. Data that is specific to a user can be redirected to a different hard disk on the
user's local computer from the hard disk that holds the operating system files. This makes
the user's data safer if the operating system is reinstalled.
For more information, see the Folder Redirection section in Best practices.

Granting exclusive rights to special folders
The Settings tab in each folder's properties dialog box contains a check box labeled Grant
the user exclusive rights to My Documents. If you select this check box, the user and the
local system have full control over the folder, and no one else, not even the
administrator, has any rights to it. If you clear this check box, no changes are made to
the permissions on the folder. Whatever permissions are in effect by default remain in
effect.

Policy removal considerations with regard to Folder Redirection
The following table summarizes what happens to redirected folders and their contents when
the Group Policy object no longer applies.

Move the contents of the special folder to the new location setting Policy Removal
option Results when policy is removed
Enabled Redirect the folder back to the user profile location when policy is removed
a.. The special folder returns to its user profile location.
b.. The contents are copied, not moved, back to the user profile location.
c.. The contents are not deleted from the redirected location.
d.. The user continues to have access to the contents, but only on the local
computer.

Disabled Redirect the folder back to the user profile location when policy is
removed a.. The special folder returns to its user profile location.
b.. The contents are not copied or moved to the user profile location.
Caution

c.. If the contents of a folder are not copied to the user profile location, the
user cannot see them.

Either Enabled or Disabled Leave the folder in the new location when policy is
removed a.. The special folder remains at its redirected location.
b.. The contents remain at the redirected location.
c.. The user continues to have access to the contents at the redirected folder.


Folder Redirection and Offline Files
The Offline Files technology applies to any mounted or mapped drive that contains
documents or data that a user might want to use offline. Offline Files does not depend on
Folder Redirection. It is set up and configured on network shares separately from the
Folder Redirection snap-in. Offline Files enables the user to do useful work even when the
user is not connected to the network, for example, on a portable computer or in the event
of router failure.

If you use redirected folders of any type, it is recommended that you set up Offline Files
as described in the following table.

Special Folder Offline File configuration
My Documents Autocaching for documents (or manual caching for documents, if you want
users to have to manually make files and folders available for offline use)
My Pictures Autocaching for documents (or manual caching for documents, if you want
users to have to manually make files and folders available for offline use)
Application Data Autocaching for programs
Desktop Autocaching for programs if the desktop is Read Only
Start Menu Autocaching for programs

Folder Redirection permissions
This is an advanced topic. If you let Folder Redirection create folders for you, which is
the recommended procedure, correct permissions are set automatically. Usually, knowledge
of these permissions is not necessary. However, there are two reasons the permissions
might be of interest:

a.. Sometimes, even though it is not recommended, administrators create the redirected
folders before Folder Redirection creates them. The following table shows what permissions
have to be set for Folder Redirection to work.
b.. Redirection of My Documents to the home directory provides more relaxed security
than standard folder redirection. The following table shows what security is in effect in
the standard case.

NTFS permissions required for the root folder
User account Folder Redirection defaults Minimum permissions needed
Creator/owner Full Control, this folder, subfolders, and files Full Control, this
folder, subfolders, and files
Local Administrator Full Control, this folder, subfolders, and files Full Control,
this folder, subfolders, and files
Everyone Full Control, this folder, subfolders, and files List Folder/Read data,
Create Files/Write Data, Create Folders/Append Data: This Folder Only
Local System Full Control, this folder, subfolders, and files Full Control, this
folder, subfolders, and files
Share-level (SMB) permissions required for the root folder
User Account Folder Redirection defaults Minimum permissions needed
Everyone Full Control Everyone: No permissions. Use a security group that matches
the users who will need to put data on the share.
NTFS permissions required for each user's redirected folder
User account Folder Redirection defaults Minimum permissions needed
%username% Full Control, owner of folder Full Control, owner of folder
Local System Full Control Full Control
Everyone Traverse Folder, Read Attributes, Read Extended Attributes, and Read
Permissions Everyone: No permissions

For more information, see Resources.



Ramesh, MS-MVP wrote:
: Hi Sam,
:
: This setting is not configurable, afaik. Programs usually query the shell
: folder paths (My Documents, My Pictures etc) in the registry, and set it as
: the start folder for the Common Dialog box.
:
:
: :: Explorer.exe Command-Line Options for Windows XP:
:: http://support.microsoft.com/?kbid=314853
::
:: Have Windows Explorer Default to the %SystemRoot% Drive When
: Started:
:: http://support.microsoft.com/?kbid=257518
::
:: --
:: Regards,
::
:: Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
:: Windows® XP Troubleshooting http://www.winhelponline.com
::
::
:: :: No matter what program I use to open files, it always starts in
: My Docs. Is
:: there a reg tweak to change this default to open on the root
: drive?
::
:: Thanks
:: Sam
 
R

Ramesh, MS-MVP

As programs query the shell folder path (from the registry), the Open/Save
As dialogs may still open the "My ....." folder, irrespective of its
location.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


In Help, under "My documents" redirecting (I have not tried this -- but I
will.) If this doesn't survive in a readable format, check Help.
 
T

tcebob

Sure. OP wanted to open on the root drive. Until a solution is found, somewhere in the
registry, he might try placing a shortcut to the root drive in "My Documents." I tried it,
naming it ",C root directory" -- the comma so it floats to the top.

rs


Ramesh, MS-MVP wrote:
: As programs query the shell folder path (from the registry), the Open/Save
: As dialogs may still open the "My ....." folder, irrespective of its
: location.
 
S

Sam

Hey Guys,

You sent me on a path to a solution. I went here:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explor
er\
User Shell Folders]

On the "My Documents" key, I deleted the value data (not the key
itself) and now when I open or save (tried with Word) it goes to
the root drive.
Excellent! Thank you!!

Sam



| Sure. OP wanted to open on the root drive. Until a solution is
found, somewhere in the
| registry, he might try placing a shortcut to the root drive in
"My Documents." I tried it,
| naming it ",C root directory" -- the comma so it floats to the
top.
|
| rs
|
|
| Ramesh, MS-MVP wrote:
| : As programs query the shell folder path (from the registry),
the Open/Save
| : As dialogs may still open the "My ....." folder, irrespective
of its
| : location.
|
|
 
R

Ramesh, MS-MVP

Hi Sam,

Are you able to open the "My Documents" folder now, either from the Start
menu or from the Desktop icon? I'm sure that the registry edit breaks the My
Documents link from other areas of the shell, as well.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Hey Guys,

You sent me on a path to a solution. I went here:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explor
er\
User Shell Folders]

On the "My Documents" key, I deleted the value data (not the key
itself) and now when I open or save (tried with Word) it goes to
the root drive.
Excellent! Thank you!!

Sam
 
S

Sam

Hi Ramesh,

Well, it worked for a night. I never bother to reboot after a reg
change, I use F5 to refresh. The tweak worked till I turned off the
system and then changed to the default without changing the
registry. I initially did tcebob suggestion by going to the root
drive and then went null. I guess the fact that it didn't change
till a re-boot, there must be a dll or two that makes sure that
doesn't happen. I found a few like mydocs, shell32 and user32 that
ties into the My Docs behavior and integration but didn't have time
to really follow a trace. I don't know much about programming but I
think one of these insures the setting is not null. But, the tweak
did work in Win98 at least. Man, I just love XP, don't you?? They
should have named it XP for Dummies.

Your question probably doesn't matter now but yes, it still worked.

Sam


| Hi Sam,
|
| Are you able to open the "My Documents" folder now, either from
the Start
| menu or from the Desktop icon? I'm sure that the registry edit
breaks the My
| Documents link from other areas of the shell, as well.
|
| --
| Regards,
|
| Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
| Windows® XP Troubleshooting http://www.winhelponline.com
|
|
| | Hey Guys,
|
| You sent me on a path to a solution. I went here:
|
|
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explor
| er\
| User Shell Folders]
|
| On the "My Documents" key, I deleted the value data (not the key
| itself) and now when I open or save (tried with Word) it goes to
| the root drive.
| Excellent! Thank you!!
|
| Sam
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top