Jump to content
xisto Community
Sign in to follow this  
snlildude87

How To Create Virtual Drives A complete guide on how to create virtual drives

Recommended Posts

I'm planning to format my computer tonight, and I need some sort of reference about this when I get back.

 

What is a virtual drive?

A virtual drive is a shortcut to a folder hidden deep inside Windows. Instead of having an icon for the shortcut (virtual drive), you will see a drive icon with a letter that you chose when you go to My Computer after you create the drive. After completing this tutorial, you will be able to turn a long path (C:\directory\directory\more\directory\oh\my\gosh\this\is\a\long\directory\) into a drive letter (L:).

 

Why should I have a virtual drive?

Virtual drives are not a necessity. It's only there to save you time. Besides, would you rather pay money for a program that creates a virtual drive, or would you do it for free? I thought so. :D

 

Let's get started

Open the command prompt: press CTRL+R -> type "cmd" (without quotes)

Posted Image

This is the command prompt...entry (I don't know the proper name) that you will be using: subst p: "C:\windows" (I chose this because everybody has this path on their computer, with the exception of Linux users). It should look somewhat like the following:

CONSOLE
Microsoft Windows XP [Version 5.1.2600]

© Copyright 1985-2001 Microsoft Corp.

 

C:\Documents and Settings\Owner>

*Replace the bolded "p" in the command prompt entry with a drive letter of your choice.

Important: Do NOT choose a letter that has already been chosen. You can check which ones Windows has already claimed by going to My Computer and noting all the drives you see. Generally, drives C, A, E, F, and Q are already taken.

*You can replace the directory, c:\windows, with any existing directory on your hard drive

*Copy the new command prompt entry (ctrl+c)

Once you have copied the entry, go to the command prompt (should already been opened), right click, and select "Paste".

Posted Image

The thing you copied above should appear on the command prompt screen. If you're using an earlier version of Windows, you should see a little clipboard icon on the command prompt toolbar. Click on the clipboard. Your command prompt window should look somewhat like the following:

CONSOLE
Microsoft Windows XP [Version 5.1.2600]

Š Copyright 1985-2001 Microsoft Corp.

 

C:\Documents and Settings\Owner>subst p: "C:\windows"

Press the Enter key on your keyboard.

Go to your My Computer, and you should see a new drive, P (or whatever letter you chose)

Double click on that drive, and it should take you to c:\windows (or whatever directory you chose)

You're done!

Now, you will be able to access files in c:\windows from the P drive (or any letter you chose) by typing P:\[filename] :P

 

Making it Permanent

The problem with virtual drives is that they are not permanent, meaning that if you restart your computer, they will not be there anymore. Of course, everything has a loophole, so there are ways to get around this. The first method is to buy a program...with money...that will do the job. The second method is to keep reading this tutorial.

Open Notepad

Copy and paste the following to Notepad:

subst p: "C:\windows"
Of course, you can replace the drive, P:, and the directory, c:\windows, with anything you wish. Remember not to choose an existing drive and not to choose a non-existing directory.

File -> Save

In the "File name:" box, copy and paste the following:

c:\autoexec.bat
Posted Image

If you get a dialog box that asks if you want to replace the existing file, click No and do the following:

*Open another instance of Notepad (do not close the one already opened)

*File -> Open

*In "File name:", copy and paste the following:

c:\autoexec.bat
*Press the Enter key on your keyboard

*Follow steps 2 thru 3 in the "Making it Permanent" section

Press ctrl+R on your keyboard

Copy and paste the following:
regedit

On the left pane, go to:
My Computer -> HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows -> CurrentVersion -> Run
Your Registry Editor should look somewhat like this:

Posted Image

 

^Note the status bar at the bottom

On the right pane of your Registry Editor, do the following: Right click -> New -> String Value

*Name this new string "Autoexec" (without quotes)

*Right click on Autoexec -> Modify -> Type "c:\autoexec.bat" (with quotes)

*Close the Registry Editor

Restart your computer

Pat yourself on the back because you just saved yourself a couple of dollars :D

When your computer is turning on, you should see the command prompt for a few seconds. Ignore this because it will go away.

 

Enjoy! :)

Share this post


Link to post
Share on other sites

That was really nice one. I have lots of folders that I access regularly and have to maintain shortcuts... now I can just use permanent virtual drives..But does this work in Windows 98 because as u said we need to enter this in cmd, whereas Win 98 does not have cmd.exe but only command.comCheers.

Share this post


Link to post
Share on other sites

Just wanted to remind you to save your registry settings before you change them in case something goes wrong in the process you can revert back to the original settings.And does this work for XP also?

Share this post


Link to post
Share on other sites

You can also start the command prompt by..

Opening notepad and writing

command.com

in it, save it as bat.bat (The name doesnt matter, as long as it is a .bat)

 

Nice guide though :) I might try it.

Share this post


Link to post
Share on other sites

Very nice, this has really helped me organise my files.I now have a Work drive (W) and it's so much easier, it feels like a seperate hard drive.I've also been interested in some Power Macs, which really do have 2 hard drives. But there rather expensive...Ah, well.Maybe one day..?

Share this post


Link to post
Share on other sites

Thanks!

How To Create Virtual Drives

 

thanks so much I needed to create a virtual drive for a class and could not find anywhere how to do it, finally I found this site. Thanks

 

-reply by shannon

Share this post


Link to post
Share on other sites

How To Delete Virtual Drive

How To Create Virtual Drives

 

How To Delete Virtual Drive?

I've created 'c:' as 'P:'

 

-question by anukumar

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.