Create a Drive Letter from a Local Folder

The links in this post contain affiliate links and I will receive a small commission if you make a purchase after clicking on my link.

It's sometimes convenient to have a drive letter to mimic the development and production servers on my local machine on Windows.

subst [Drive] [Path]

And an example of mapping a D: drive from a folder called "D_Drive" on the C: drive is:

subst D: C:\D_Drive

I use this feature all the time, and my work machine forgets this drive letter mapping whenever it reboots. It's possible to map this drive automatically at start via the registry, if needed.

Official Thought Worthy Logo

Can't Find What You're Looking For?

Suggested Reading