How to Assign Drive Letters to Folders in Windows 10 and 11

·
5 min read

Help Desk Geek is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

Assigning a drive letter to a frequently used folder makes it appear as its own drive in File Explorer, which is handy for deep paths you navigate to constantly or for legacy software that only accepts a drive letter. The built-in subst command still works on Windows 10 and 11, and two other options cover you if you need something more permanent or more visual.

Quick note on “what you actually need”: If you just want faster access to a folder, pinning it to Quick Access in File Explorer is simpler and doesn’t consume a drive letter. The methods below are best when you specifically need a drive letter, for a legacy app, a script, or a workflow that expects one.

Method 1: Use the subst Command (Built-in, No Install Required)

subst is a built-in Windows command that maps any local folder to a drive letter instantly. The mapping is temporary by default, meaning it disappears when you restart or log off. Method 2 covers how to make it persistent.

Step 1: Open Command Prompt or Windows Terminal

  1. Press Windows + S and type cmd.
  2. Click Command Prompt in the results. (You don’t need to run it as administrator for subst.)
Windows 11 Start search showing "cmd" with Command Prompt highlighted in results

Step 2: Run the subst command

  1. Type the following, replacing the drive letter and path with your own:
subst Y: "C:\Users\Lori Kaufman\Documents\My Work"
  1. Press Enter. No confirmation message appears, which is normal.
Command Prompt window showing the subst command entered with a folder path in quotes

Note: Always wrap the path in quotes if it contains spaces. Use a drive letter that isn’t already assigned. You can check in File Explorer under This PC.

Step 3: Confirm the mapping in File Explorer

  1. Open File Explorer and click This PC in the left sidebar.
  2. You should see Y: listed under Devices and drives. Double-clicking it opens your mapped folder directly.
File Explorer "This PC" view showing the newly mapped Y: virtual drive listed under Devices and drives

Step 4: Remove the mapping when you no longer need it

  1. In Command Prompt, run:
subst Y: /d
  1. The Y: drive disappears from File Explorer immediately.

To see all current subst mappings at any time, just run subst with no arguments.

Method 2: Make the Mapping Persistent with a Scheduled Task

Because subst mappings don’t survive a reboot, the most reliable way to restore them automatically is a scheduled task that runs at logon. This keeps the drive letter available every session without any third-party software.

Step 1: Open Task Scheduler

  1. Press Windows + S, type Task Scheduler, and open it.
Windows 11 Task Scheduler window open and ready to create a new task

Step 2: Create a new basic task

  1. In the right-hand Actions panel, click Create Basic Task.
  2. Give it a name like Map Y to My Work folder and click Next.
  3. Set the trigger to When I log on and click Next.
  4. Set the action to Start a program and click Next.

Step 3: Point the task at subst

  1. In the Program/script field, enter:
subst
  1. In the Add arguments field, enter your mapping, for example:
Y: "C:\Users\Lori Kaufman\Documents\My Work"
  1. Click Next, then Finish.
Task Scheduler Create Basic Task wizard showing the "Start a program" action step with subst in the Program/script field and the drive mapping in the arguments field

The drive letter will now be available automatically each time you log in.

Method 3: Use Visual Subst (GUI Tool)

Visual Subst is a free, lightweight GUI that wraps the subst command and adds a startup option so mappings persist across reboots, with no command line required. It’s still actively maintained and works on Windows 10 and 11.

Step 1: Download and install Visual Subst

  1. Download Visual Subst from the developer’s site: ntwind.com/software/visual-subst.html.
  2. Double-click the downloaded .exe file to start the installer.
Visual Subst installer executable file in File Explorer Downloads folder
  1. On the Installation Options screen, select the shortcuts you want and click Next.
Visual Subst Installation Options screen with Program Shortcuts checkboxes and Next button
  1. When setup finishes, click Close.
Visual Subst Installation Completed screen with Close button

Step 2: Add a virtual drive mapping

  1. Open Visual Subst from the Start menu or desktop shortcut.
  2. In the main window, select a free drive letter from the drop-down list.
Visual Subst main window with drive letter dropdown open showing available letters
  1. Click the Browse button next to the path field.
Visual Subst main window with Browse button highlighted next to the folder path field
  1. In the Browse For Folder dialog, navigate to and select your target folder, then click OK.
Browse For Folder dialog box with a folder selected and OK button visible
  1. Click the green + button on the toolbar to add the mapping to the list.
Visual Subst main window showing the newly added virtual drive entry in the list

Step 3: Make the mapping persist at startup

  1. Check the Apply virtual drives on Windows startup checkbox at the bottom of the window.
Visual Subst window with "Apply virtual drives on Windows startup" checkbox checked
  1. Click the floppy disk (Save) button on the toolbar to save the settings. Visual Subst stores a .ini file in its installation directory.
Visual Subst window with the Save (floppy disk) button highlighted on the toolbar

The mapped folder now appears as a drive under This PC in File Explorer.

File Explorer "This PC" view showing the Visual Subst-mapped drive listed under Devices and drives

Step 4: Remove a mapping

  1. Open Visual Subst, select the virtual drive in the list, and click the red X button on the toolbar.
Visual Subst main window with a virtual drive selected in the list and the red X delete button highlighted

When You Need More Than a Drive Alias

Both subst and Visual Subst create virtual drive aliases, and some applications treat them differently from real volumes and may refuse to use them. If you run into that, these alternatives are worth knowing about:

  • Junctions or symlinks: create a folder alias that behaves like a real folder at the filesystem level. Open Command Prompt as administrator and run mklink /J "C:\AliasFolder" "C:\Target\Path". Junctions are the most compatible option for local paths.
  • Mounted VHDX: if you genuinely need a drive letter backed by something that looks like a real disk to all software, create and mount a VHD/VHDX in Disk Management. More setup, but fully transparent to applications.
  • Quick Access / Home in File Explorer: if you just want faster navigation and don’t need an actual drive letter, right-click any folder and select Pin to Quick access. No drive letter consumed, no reboot behavior to worry about.

Conclusion

For most people, the subst command (Method 1) is the fastest way to get a drive letter pointing at a folder. It works on Windows 10 and 11 with no install required. If you want the mapping to survive reboots without thinking about it, Visual Subst (Method 3) is the most convenient option. Just keep in mind that if a specific app rejects the virtual drive, a junction created with mklink /J is usually the fix that makes it cooperate.