Create virtual drive of any folder from windows command prompt

By -

Few days back I talked about a software which allows you to create a virtual drive of any folder i.e. like your c drive or d drive it can create another drive say Y which appears in your my computer. 

Create Virtual Drives of your frequently accessed folders

Create Virtual Drives of your frequently accessed folders

The software name was Visual Subst which made me thought if it was a windows command. I looked around and yes that was true. Subst is dos command which allows you create virtual drive out of any folder. Very handy for the most frequent accessed folders.

Create Virtual Drive with Dos Command

Here is complete option for SUBST 

Associates a path with a drive letter.

SUBST [drive1: [drive2:]path]

SUBST drive1: /D

  drive1:        Specifies a virtual drive to which you want to assign a path.

  [drive2:]path  Specifies a physical drive and path you want to assign to

                 a virtual drive.

  /D             Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.

It works on Windows VIsta, XP and should on windows 7 too. So if you dont want to use any of the software just remember the command but if  tot comfortable with Dos command ? try the Visual Subst Tool



A Professional Tech blogger, Editor and Writer who talks about solving day to day problems of people who use computer. His expertise are in Windows 7, Microsoft Office, Software, Mobile Apps and Video Posts. You can find Ashish on , and .

6 Comments to Create virtual drive of any folder from windows command prompt

  1. Tried this repeatedly, MS DOS response is either ‘path not found’ or ‘incorrect number of parameters’.

  2. I remember using DOS to create a virtual drive in memory, so that a DVD could be loaded to memory and would play smoothly. Does the “subst” command do that? Or is there another command which isn’t listed when you simply type help to display all the commands?

  3. I looked it up, and all the SUBST command does is associate a path with a drive letter. It doesn’t create a virtual drive in memory. It’s only purpose is to make it easier to get to a long path name by using a drive letter.

    How do you make a virtual drive in memory? I have 2 gigs of memory, and the VOB files on my DVD’s are 1gig files that I won’t to simply copy to memory so they will play smoothly. I don’t understand why Windows Media Player won’t just load the DVD to memory itself, so I have to do it manually.

Leave a Reply

Stats