Set Default Document Save Paths Using Regedit
Administrators can centralize and manage where classic desktop
applications save files by modifying specific keys in the Windows
Registry using the Registry Editor (regedit.exe). This
guide outlines the exact registry paths, the key values responsible for
the default “Documents” directory, the step-by-step process to redirect
paths for individual users or across the entire system, and how to
automate these changes.
Understanding the Target Registry Keys
Classic Windows desktop applications rely on shell folders defined in the registry to determine default file dialog locations (like “Save As”). The primary value governing document locations is named Personal.
The two primary registry paths are:
- Current User:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders - System Default (Affects New User Profiles):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
Step-by-Step Configuration
Press Win + R, type
regedit, and press Enter to open the Registry Editor.Navigate to:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell FoldersLocate the value named Personal in the right pane.
Double-click Personal and change its Value data to the target folder path (for example,
D:\CustomDocumentsor a network path%USERPROFILE%\CustomDocs).Ensure the value type is set to
REG_EXPAND_SZif you are using environment variables (such as%USERPROFILE%or%USERNAME%).Sign out and sign back into the Windows user account, or restart the
explorer.exeprocess to apply the changes.
Configuring Application-Specific Save Paths (Microsoft Office)
Some classic applications, such as Microsoft Office suites, have their own independent default file location keys that override the general shell folder settings.
Navigate to the version-specific Office key (replace
16.0with your Office version):HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Word\OptionsLook for the string value named DOC-PATH. If it does not exist, right-click, select New > String Value, and name it
DOC-PATH.Set the value data to the full path where you want the application to save files by default.
Automating via .reg
File
To deploy this configuration across multiple machines, you can create
a standard .reg file containing the following code:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"Personal"=hex(2):44,00,3a,00,5c,00,43,00,75,00,73,00,74,00,6f,00,6d,00,44,\
00,6f,00,63,00,73,00,00,00
Note: The hex string represents an expandable string
(REG_EXPAND_SZ) containing the directory path.