How to attribute a virtual drive letter to a folder from the' Disk

  • Thread starter Thread starter Ahmed Abdelmoumen
  • Start date Start date
A

Ahmed Abdelmoumen

Hello.

i would like to attribute the Z: drive (virtual drive) to a folder from my
hard drive.

how can i do this.

Best Regards.
Ahmed
 
Ahmed Abdelmoumen said:
i would like to attribute the Z: drive (virtual drive) to a folder from my
hard drive.


Merhaba, Ahmed

You can do this using the SUBST command. For example:

C:\>subst z: c:\temp

to make C:\TEMP appear as the Z: drive.

I don't think the SUBST drive mapping is persisted, after you log off. You
may need to run it again, every time you log in. The easiest way to do this
would be to create a short batch file containing a SUBST command, and place
it in your Startup folder, %USERPROFILE%\Start Menu\Programs\Startup. The
batch file will then run automatically, every time you log in.

Hope it helps,
 
Andrew McLaren said:
Merhaba, Ahmed

You can do this using the SUBST command. For example:

C:\>subst z: c:\temp

to make C:\TEMP appear as the Z: drive.

I don't think the SUBST drive mapping is persisted, after you log off. You
may need to run it again, every time you log in. The easiest way to do
this would be to create a short batch file containing a SUBST command, and
place it in your Startup folder, %USERPROFILE%\Start
Menu\Programs\Startup. The batch file will then run automatically, every
time you log in.


Andrew, what about a NTFS mounted volume? I have never done this with a
virtual drive, but I always used mounted volumes for My Documents in XP
(With Vista's new shell user folders, redirected and with junction points as
well, I find this unnecessary).

Don't you think this is possible? It's like the exact thing the OP is
looking for.

ss.
 
Synapse Syndrome said:
Andrew, what about a NTFS mounted volume? I have never done this with a
virtual drive, but I always used mounted volumes for My Documents in XP

Hey, Synapse

Good point. I interpreted Ahmed's question as "I have a directory, which I
want to refer to by a drive letter"; rather than "I have a disk, which I'd
like to refer to by a directory name". But it's worth noting that both
combinations are posible:

You can use SUBST to assign a drive letter to a directory.

You can use MOUNTVOL to assign a directory name to a disc.

(Although in my experience, it is much easier to mount a disc as a directory
using the Disk Manager UI, under Administrative Tools)

So for example, you add a new hard disk and then mount it on C: as C:\TEMP
(or whatever), instead of it becoming a new D: drive. The catch is that
anything in an already-existing C:\TEMP would be obscured until to unmount
the disc; you really need to mount the disc on an empty directory. That's
pretty much the same as Unix.

Cheers,
 
Hello,

Thank you for you're, Help
yes subst help me to mount a Folder as a new virtual drive (in fact i have
done this before but forget the name of the command)

Thank you again.
Ahmed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top