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,