iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Use Windows mklink to create a second path that points to the same file or folder. For a folder, open Command Prompt and run mklink /D "C:pathtolink" "C:pathtooriginal-folder". For one file, omit /D: mklink "C:pathtolink.txt" "C:pathtooriginal.txt". The link is not a duplicate; both paths reach the same underlying item.
What a symbolic link does
A symbolic link is a filesystem object that redirects one path to another. You keep the real file or folder in one location, then create a link at a second location. Opening the linked path takes you to the target, so an application can reach the same data through either path without maintaining two copies.
The path you create is the link. The existing file or folder it refers to is the target. In the Microsoft command syntax, the order is always link first and target second: mklink [[/d] | [/h] | [/j]] <link> <target>. Reversing those arguments creates the wrong result or fails.
Free tools Windows power users keep installed
One-click scans. No signup required.
A symbolic link does not synchronize two independent copies. Changes made through either path affect the target. If the target is moved or renamed, the link may stop resolving, depending on whether the link stores an absolute or relative target path.
#1 Best Overall
- Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
- With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
- Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
- Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
- Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.
Choose whether you are linking a folder or a file
Linking a folder
Use a directory symbolic link with /D. The target folder must already exist, while the link path must be available for the new link object.
mklink /D "C:UsersAlexDocumentsSharedView" "D:ProjectsSharedFiles"
After this command, C:UsersAlexDocumentsSharedView exposes the contents of D:ProjectsSharedFiles.
Linking one file
For a file symbolic link, use plain mklink without /D. The target file should exist before you run the command.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →mklink "C:UsersAlexDesktopsettings-copy.json" "D:AppDatasettings.json"
The filename at the link path can differ from the target filename, but the parent directory must exist and the link name itself must not already be occupied.
Prepare the paths before creating the link
- Locate the real item. Decide which file or folder will hold the actual data. This is the target path.
- Choose the second path. Decide where users or an application should see the item. This is the link path.
- Check that the link path is unused. A directory, file, or existing link with that name prevents creation. Do not point the link at a path that already contains files you intend to preserve.
- Confirm access. You need permission to create an object in the link’s parent directory and to access the target.
- Quote paths containing spaces. Quotation marks keep a path such as
C:Work FilesReportstogether as one command argument.
For clarity, write the two paths down as “link” and “target” before entering the command. The first quoted path is the new location; the second is the existing item.
Create the symbolic link in Command Prompt
Step 1: Open Command Prompt
Open the Start menu, type Command Prompt, and launch it. If Windows returns an access or privilege error, close it, search for Command Prompt again, right-click it, and select Run as administrator.
Step 2: Run the correct command
For a directory:
mklink /D "C:pathtolink" "C:pathtooriginal-folder"
For a file:
mklink "C:pathtolink.txt" "C:pathtooriginal.txt"
You do not need to change to either directory first when you use complete absolute paths. Press Enter once the command is correct. A successful command reports that the symbolic link was created and displays the link and target paths.
Recommended Free Tools
Rank #2
- Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
- Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
- Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
- Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
- Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
Step 3: Verify the result
Open the new path in File Explorer. For a folder link, browse into it and open a known file. For a file link, open it from the link path and confirm that it is the expected target. You can also run dir in Command Prompt to inspect the link entry. This confirms that the path resolves; it does not establish that every third-party application will treat links identically.
Create the link with PowerShell
PowerShell uses New-Item with -ItemType SymbolicLink. Specify the new path with -Path and the existing item with -Target.
Folder example
New-Item -ItemType SymbolicLink -Path "C:UsersAlexDocumentsSharedView" -Target "D:ProjectsSharedFiles"
File example
New-Item -ItemType SymbolicLink -Path "C:UsersAlexDesktopsettings-copy.json" -Target "D:AppDatasettings.json"
Microsoft documents relative targets as valid for this cmdlet as well as absolute targets. If PowerShell reports that the operation requires elevation, reopen PowerShell with Run as administrator, unless your supported Windows configuration has Developer Mode enabled.
Administrator rights, Developer Mode, and creation privileges
On Windows, symbolic-link creation commonly requires administrator elevation. Microsoft’s PowerShell documentation identifies an exception for Windows 10 build 14972 or newer when Developer Mode is enabled. The exact requirement can also vary with the program or API being used. Windows provides an unprivileged symbolic-link creation option through its API, but an application must use that option; its existence does not automatically make every command or tool non-elevated.
To enable Developer Mode on a compatible Windows installation, open Settings → System → For developers and turn on Developer Mode, then retry the operation. Organizations may restrict this setting through policy. Microsoft’s user-rights policy documentation says the symbolic-link creation privilege should be assigned only to trusted users, so do not alter local security policy merely to avoid opening an elevated console.
If elevation still fails, check the parent directory’s permissions, whether the target is on a protected location, and whether security software or organizational policy blocks reparse-point creation. A successful link command cannot compensate for a target that your account cannot read.
Understand absolute and relative targets
Absolute target paths
An absolute target names the complete location, such as D:ProjectsSharedFiles. It is straightforward to inspect and remains valid when the link itself is moved, provided the target stays at that exact location. If the target folder is moved to another drive or renamed, the link breaks until it is recreated or the target is restored.
Rank #3
- 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
- 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
- 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
- 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
- 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
Relative target paths
A relative target is resolved from the link’s position. This can be useful when a project directory and its linked item are moved together while preserving their relative layout. It can also make a link harder to understand when someone opens it from a different location. Microsoft documents that relative symbolic links are restricted to a single volume.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
For example, if C:ProjectPublicassets links to C:Projectprivateassets, the relationship can be represented relatively because both paths are on drive C:. Moving both directories together may preserve that relationship, but moving only one does not. Decide based on how the directories will be deployed, renamed, or backed up.
Remote and UNC targets
Windows path documentation describes UNC paths for remote targets. A link to a network location therefore has different operational dependencies from a link on a local volume: the share must be reachable and your account must retain access. Test the link from the account and machine that will actually use it rather than assuming that a path working for an administrator will work for every user.
Symbolic link, junction, hard link, or shortcut?
These options are not interchangeable. Microsoft’s mklink reference lists separate switches, while Windows shortcuts are shell objects rather than the same filesystem link type.
| Type | Command or object | Use established by the documentation | Important qualification |
|---|---|---|---|
| Directory symbolic link | mklink /D |
Expose a folder at another path. | Target may be absolute or relative; relative links are limited to one volume. |
| File symbolic link | mklink |
Expose one file at another path. | Omit /D; the link path is first and target second. |
| Directory junction | mklink /J |
A separate directory-link type listed by Windows. | The supplied Microsoft material does not establish every junction limitation, so do not assume it is universally interchangeable with a symbolic link. |
| Hard link | mklink /H |
A separate hard-link option. | It is not the default choice for exposing a folder through a second path. |
| Windows shortcut | .lnk shell object |
Provides a user-facing shortcut. | It is not the same filesystem link mechanism, and applications that require a filesystem path may not follow it. |
Use /D when the requirement is specifically “make this directory available at another filesystem path.” Use a plain mklink command when the requirement concerns one file.
Troubleshoot common failures
| Symptom | Likely cause | Action |
|---|---|---|
| “You do not have sufficient privilege” or an access error | The console is not elevated, or policy blocks symbolic-link creation. | Run the console as administrator. On supported Windows 10 builds, check whether Developer Mode is enabled. If policy still blocks it, contact the administrator rather than changing security rights blindly. |
| “Cannot create a file when that file already exists” | The intended link path already contains a file, folder, or link. | Choose an unused name or move the existing item after confirming it is safe to do so. |
| The command creates the wrong kind of link | The switch does not match the object. | Use /D for a directory symbolic link; omit switches for a file symbolic link. Do not substitute /H or /J without understanding the different type. |
| The link opens an error after the target was reorganized | An absolute or relative target no longer resolves. | Restore the target path, move the target and link together when using an appropriate relative relationship, or remove and recreate the link with the new target path. |
| File Explorer opens it but an application does not | The application may not support or may deliberately reject symbolic links. | Check that application’s documentation and security settings. Do not assume behavior for backup, synchronization, antivirus, or other software from File Explorer’s behavior. |
| A network-linked item is unavailable | The UNC share is offline or the current account lacks permission. | Test the share directly, confirm credentials and network availability, and then test the link again. |
Remove a link without deleting the target
Remove only the link object when you want to stop exposing the second path. Do not recursively delete the linked folder’s contents. The command depends on whether the link represents a directory or a file.
Remove a directory symbolic link
In Command Prompt, use rd (also called rmdir) on the link path:
Rank #4
- 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
- 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
- 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
- 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
- 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
rd "C:UsersAlexDocumentsSharedView"
This removes the directory link entry. It is not a request to erase the target folder. Verify that you typed the link path, not the original target path, before pressing Enter.
Remove a file symbolic link
Use del on the file link:
del "C:UsersAlexDesktopsettings-copy.json"
Microsoft’s Win32 documentation describes removing a symbolic link with file removal or directory removal according to the link type. If you are unsure which path is the link, inspect it first rather than deleting the directory that contains the real data.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallPractical patterns for using one item from two folders
Give an application a second folder path
Suppose an application only scans C:AppImports, while the actual files must remain under D:TeamShareImports. Create the directory link at the path the application scans:
mklink /D "C:AppImports" "D:TeamShareImports"
The application sees an ordinary-looking directory entry at its expected path, while the files remain in the target location. Whether the application accepts this arrangement is application-specific; test its import, write, backup, and update operations before relying on it.
Expose a configuration file in a second directory
If a tool expects C:Toolconfig.ini but the maintained file belongs in D:Managedconfig.ini, create the file link after ensuring the parent directory exists:
mklink "C:Toolconfig.ini" "D:Managedconfig.ini"
Editing either path edits the same target. Keep one authoritative target location so that administrators know which file to back up and secure.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Keep a project’s relative layout
A relative link can be appropriate when a project is moved as a complete unit and the linked directories remain on one volume. Document the relationship for other users, because the target is resolved from the link’s location rather than from the current working directory of the command prompt.
Best Value
- 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
- 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
- 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
- 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
- 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Security, backup, and application considerations
A link can make sensitive data reachable through an additional path. Apply permissions to the target and its parent directories, and consider whether the application should be allowed to traverse the link. Do not grant broad symbolic-link creation rights simply to simplify a one-time setup.
Backup and synchronization tools differ in how they treat symbolic links: some preserve the link, some copy the target’s contents, and some skip links to avoid loops. The Microsoft command and API references do not establish a universal policy for those products. Confirm the behavior of the particular tool, especially before deleting an original folder or assuming that a backup contains both the link metadata and the target data.
Likewise, a link can participate in loops if links are created carelessly. Keep the target outside the linked path when possible, and test recursive scans with non-critical data first. A link is an additional route to the same object, not an independent safety copy.
Quick decision checklist
- Need a second path to a folder? Use
mklink /D. - Need a second path to one file? Use plain
mklink. - Remember the order: link path first, target path second.
- Use quotes around paths containing spaces.
- Ensure the target exists and the link name does not.
- Use an elevated console when Windows requires it; Developer Mode can change that requirement on supported Windows 10 builds.
- Choose absolute or relative targets based on how the files will be moved and whether both paths stay on one volume.
- Remove the link with
rdfor a directory ordelfor a file, never by deleting the target. - Verify compatibility with the application, backup, synchronization, and security tools that will access the link.
Frequently asked questions
Can I create the link before the target exists?
The normal workflow is to create the target file or folder first, then point the link at it. A link whose target path does not resolve is broken until that path is restored.
Does a symbolic link use twice the storage?
The link itself is a filesystem object containing a path reference; it is not a second copy of the target’s contents. The target still consumes its original storage.
Will moving the link move the original folder?
Moving the link changes the location of the redirecting object, not the target. An absolute target can continue working after the link moves, while a relative target may resolve differently because its base location changed.
Can I use a symbolic link across drives?
An absolute symbolic-link target can identify a path on another drive. Relative symbolic links are restricted to a single volume, so use an absolute target when the relationship crosses volumes.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesWhy is a shortcut not enough?
A shortcut is a shell object intended for user navigation. A symbolic link supplies a filesystem path, which is why it is used when a program expects a directory or file at a specific location. Individual applications can still reject or specially handle links.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

