How to Automatically Make Contents of Folder A Appear Inside Folder B

Abstract: Resolve the need to make Folder A contents appear in Folder B on Windows using a native symbolic link for real-time access without duplicating data.

Created: 2026-07-31 by
Create a symbolic link using the mklink command in an elevated Command Prompt to make Folder A appear inside Folder B. This method creates a virtual pointer rather than copying data, ensuring that any changes made in the source folder are instantly reflected in the destination location without duplicating storage usage or requiring manual synchronization scripts.

Understanding Symbolic Links

A symbolic link (or symlink) is a special type of file that acts as a reference or pointer to another file or directory. When you access the symbolic link, the operating system automatically redirects you to the target location. In this scenario, creating a symbolic link allows Folder B to serve as a gateway to Folder A. Any file created, modified, or deleted within Folder A will immediately be visible and accessible through Folder B because they are essentially pointing to the same underlying data.

This approach is superior to traditional file synchronization tools for several reasons. First, it requires zero additional storage space since no duplicate files are created. Second, it eliminates latency associated with background sync processes. Third, it ensures real-time consistency between the two paths. If you need Folder A's contents to be visible in Folder B on Windows, this is the most efficient native solution available without installing third-party software.

Prerequisites and Preparation

Before executing the linking command, you must prepare your environment correctly. The primary requirement is administrative privileges. The mklink command modifies system-level directory structures, which standard user accounts cannot do for security reasons. You must open the Command Prompt with elevated rights to proceed.

Additionally, ensure that both Folder A and Folder B exist on the same drive if you plan to create a hard link, though symbolic links can cross drives and even network locations. For this guide, we assume Folder A is the source containing the actual data, and Folder B is the empty directory where you want the contents to appear. Do not populate Folder B with files before creating the link, as this may cause conflicts or confusion regarding which files are "real" versus linked.

If you encounter issues with permissions later, check that your user account has full control over both directories. You can verify this by right-clicking the folders, selecting Properties, and checking the Security tab. Consistent permissions prevent access denied errors when navigating through the link.

Step-by-Step Guide to Creating the Link

Follow these precise steps to establish the connection between your folders.

  1. Open Elevated Command Prompt: Click the Start menu, type cmd, right-click "Command Prompt," and select "Run as administrator." Confirm any User Account Control prompts.
  2. Navigate to Destination: Use the cd command to change your current directory to the parent folder containing Folder B. For example: cd C:\Users\YourName\Documents.
  3. Execute the Command: Type the following command structure, replacing paths with your actual directories:
    mklink /D "C:\Path\To\FolderB" "C:\Path\To\FolderA"
  4. Verify Success: If successful, you will see a message stating "Symbolic link created." If you receive an error, check that Folder B is empty and that you have administrative rights.

The /D flag specifies that you are creating a directory symbolic link. Without it, the command defaults to creating a file link, which would fail for folders. Ensure you enclose paths in quotes if they contain spaces. Once executed, opening Folder B in File Explorer will show you the exact contents of Folder A. Renaming or moving Folder B will break the link, so treat it as a fixed alias.

Troubleshooting Common Issues

Sometimes the link may not behave as expected. If Folder B appears empty despite Folder A having files, verify that the link was created correctly. Right-click Folder B and check its properties; it should indicate it is a "symbolic link" or "junction point." If it shows as a regular folder, the link failed.

Another common issue is permission inheritance. Since Folder B is just a pointer, it inherits permissions from Folder A. If you cannot write to Folder B, check the security settings of Folder A. Additionally, some older applications may not handle symbolic links well. If a program fails to read files through Folder B, consider using a junction point instead by changing the command to mklink /J. Junctions are limited to local volumes but offer broader compatibility with legacy software.

For more information on managing file visibility issues, you might find Make contents of folder A visible inside folder B helpful for alternative approaches.

Maintaining and Removing the Link

To remove the symbolic link, you do not delete the files inside Folder B. Instead, use the rmdir or rd command to remove the link itself. Run rmdir "C:\Path\To\FolderB" in the elevated Command Prompt. This action removes only the pointer, leaving all original data in Folder A intact.

Never use the Delete key or File Explorer delete function on Folder B, as this may attempt to delete the actual files in Folder A depending on how the OS interprets the operation. Always use command-line removal tools for symbolic links to ensure safety. Regularly backing up Folder A remains essential, as the link does not provide redundancy against hardware failure.

Frequently Asked Questions

Can I create a symbolic link between different drives?

Yes, symbolic links created with the /D flag can span across different physical drives and partitions. Unlike hard links, which must reside on the same volume, symbolic links act as network-style pointers and work seamlessly across D:, E:, or remote network shares.

Will deleting a file in Folder B delete it in Folder A?

Yes. Because Folder B is merely a view into Folder A, any deletion performed through Folder B affects the original file in Folder A. There is no separate copy stored in Folder B, so actions taken in either location are permanent and mutual.

What is the difference between a symbolic link and a junction?

A symbolic link (/D) can point to files or directories and can cross drive boundaries. A junction (/J) is restricted to directories and must be on the same local drive. Junctions are often more compatible with older Windows versions and certain backup software that struggles with modern symlinks.

How do I fix a broken symbolic link?

If the source folder (Folder A) is moved or renamed, the link breaks. To fix it, remove the existing link using rmdir and recreate it with the updated path. You can identify broken links in File Explorer as they typically display a small shortcut arrow overlay indicating the target is unreachable.

Is this method supported on Windows Home editions?

Yes, the mklink command is available in all versions of Windows, including Windows 10 and 11 Home. However, you must still run the Command Prompt as an administrator. No special enterprise licenses or server editions are required to utilize this feature.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More