You can link folder files to another drive and folder on Windows by creating a junction point or symbolic link. This technique makes a directory appear in multiple locations without duplicating data, allowing applications to access resources stored on different drives seamlessly. The process uses built-in command-line tools that require administrator privileges to execute correctly.
Understanding Junction Points and Symbolic Links
Before executing any commands, it is important to understand the difference between the two primary methods for linking folders. A junction point is a type of hard link that works only within the same volume (drive) but is often used for cross-volume scenarios in older Windows versions. However, modern Windows systems prefer symbolic links (symlinks), which are more flexible and can span across different physical drives.
When you create a symbolic link, the operating system creates a pointer that redirects requests from one location to another. If you delete the original folder, the link breaks. If you delete the link itself, the original data remains intact. This distinction is crucial for data safety when managing storage across multiple drives. For users who have encountered issues with leftover shortcuts after uninstalling software, understanding this redirection mechanism helps prevent similar confusion. You can read more about resolving shortcut remnants
here.
Preparation and Prerequisites
To successfully link a folder to another drive, you must prepare both the source and destination paths. First, identify the exact path of the folder you wish to move or link. Ensure that no files within this folder are currently open by other applications. If files are in use, the operation will fail or cause instability. You may encounter errors if the target location already contains files or folders with the same name. In such cases, you might need to resolve conflicts similar to those described when trying to replace locked files
here.
Create an empty placeholder directory at the destination where you want the link to appear. This directory should be located on the target drive. Do not place any files inside this placeholder, as they will be obscured by the link once created. Administrator rights are mandatory for this step because standard user accounts do not have permission to create symbolic links or junction points.
Creating a Symbolic Link via Command Prompt
The most reliable method involves using the
mklink command in an elevated Command Prompt. Open the Start menu, search for "cmd", right-click the Command Prompt app, and select "Run as administrator". This elevation is critical; without it, the system will deny the request due to security restrictions.
Use the following syntax to create a directory symbolic link:
mklink /D "LinkPath" "TargetPath"
Replace
"LinkPath" with the full path of the empty placeholder directory you created earlier. Replace
"TargetPath" with the full path of the original folder containing your files. Both paths must be enclosed in quotation marks if they contain spaces. For example, to link a folder on Drive E to a folder on Drive C, the command would look like this:
mklink /D "C:\Users\Name\Documents\LinkedFolder" "E:\Data\OriginalFolder"
Once executed, the system will display a confirmation message stating that it created a symbolic link. You can now navigate to the new location and see the contents of the original folder. Any changes made to files in either location will reflect in the other, as they point to the same underlying data.
Verifying and Managing the Link
After creation, verify the link by opening the destination folder in File Explorer. It should behave exactly like a regular folder, showing all files and subdirectories from the source. You can check the properties of the folder to confirm it is recognized as a reparse point or symlink. If the link does not appear, ensure that the paths were correct and that the Command Prompt was run with administrative privileges.
If you need to remove the link, simply delete the placeholder folder at the destination. This action removes the pointer but leaves the original data untouched. Be cautious not to delete the original folder, as this will break the link and potentially cause application errors if they rely on the linked path. For more information on navigating drive-specific shortcuts, refer to our guide on opening shortcuts across drives
here.
Frequently Asked Questions
Can I create a symbolic link between different file systems?
Yes, symbolic links work across different file systems such as NTFS and ReFS, provided both are supported by the current version of Windows. However, junction points are limited to NTFS volumes. Always verify that the target drive format is compatible before attempting to link.
Will antivirus software flag my linked folders as malicious?
Generally, no. Legitimate symbolic links are a standard Windows feature and are not flagged by reputable antivirus software. However, some overly sensitive security tools might alert on unknown reparse points. If you experience false positives, add an exception for the specific link path in your security settings.
What happens if the original drive is removed?
If the source drive is disconnected or fails, the symbolic link becomes broken. Applications trying to access the linked folder will receive error messages indicating that the path is invalid. To avoid data loss, always keep backups of the original data before linking it to another location.
Is there a graphical way to create these links?
Windows does not provide a native GUI option for creating junctions or symlinks directly through File Explorer. You must use the Command Prompt or PowerShell. Third-party utilities exist, but they essentially perform the same
mklink commands under the hood. Using the built-in tool ensures stability and compatibility.
How do I check if a folder is a symbolic link?
You can identify a symbolic link by its icon overlay in File Explorer, which often includes a small arrow. Additionally, running the
dir command in Command Prompt will show "(JUNCTION)" or "(SYMLINKD)" next to the directory name. Properties dialog boxes also indicate the reparse point status for linked directories.