Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > How to attribute a virtual drive letter to a folder from the' Disk

Reply
Thread Tools Display Modes

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

 
 
Ahmed Abdelmoumen
Guest
Posts: n/a

 
      09-06-2007
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

 
Reply With Quote
 
 
 
 
Andrew McLaren
Guest
Posts: n/a

 
      09-06-2007
"Ahmed Abdelmoumen" <> wrote ...
> 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
amclar (at) optusnet dot com dot au


 
Reply With Quote
 
Synapse Syndrome
Guest
Posts: n/a

 
      09-07-2007
"Andrew McLaren" <> wrote in message
news:0877C791-BDD9-439B-90D3-...
> "Ahmed Abdelmoumen" <> wrote ...
>> 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.



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.


 
Reply With Quote
 
Andrew McLaren
Guest
Posts: n/a

 
      09-07-2007
"Synapse Syndrome" <> wrote ...
> 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,
--
Andrew McLaren
amclar (at) optusnet dot com dot au


 
Reply With Quote
 
Ahmed Abdelmoumen
Guest
Posts: n/a

 
      09-07-2007
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.
"Andrew McLaren" <> a écrit dans le message de
news:E12A5470-8E37-4598-B95E-...
> "Synapse Syndrome" <> wrote ...
>> 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,
> --
> Andrew McLaren
> amclar (at) optusnet dot com dot au
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash Drive has no drive letter... Not in Disk Management mattperry Windows Vista Hardware 11 01-13-2009 03:26 PM
Floppy Disk Drive Letter Rob Windows Vista Hardware 2 05-02-2008 03:43 PM
Virtual Disk drive Michael Chare Windows Vista General Discussion 8 12-02-2007 09:52 AM
Changed my Document folder to a drive letter and has created a mes ARK Windows Vista Installation 1 07-12-2007 10:29 AM
Cannot change drive letter in 'Disk Managment' no spam Windows Vista Performance 2 04-16-2007 06:18 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59