3

I have a network share mapped to drive T: and I want to be able to access if easily from a specific directory. However, entering subst t: c:\volumes\test gives the error message Invalid parameter - T:

Is there a limitation on mapped network drives or Windows server 2003, or am I doing something wrong?

Update:

As EBGreen points out, I don't actually want to use subst, since it doesn't do what I thought it did. I'm coming from a Linux environment, where remote shares can be mounted on to a directory in the filesystem.

Is there something in Windows that'll let me do this?

6
  • 2
    subst does the exact opposite of what you are trying to do. Feb 13, 2012 at 20:36
  • @Harry You're right. I haven't had to use it since about 1989 and its purpose had become somewhat confused in my mind over time.
    – Kalessin
    Feb 14, 2012 at 14:18
  • In the interest of credit where credit is due, Synetech and Harry johnson had it right, I had it backwards.
    – EBGreen
    Feb 14, 2012 at 15:17
  • @EBGreen, to be fair, if Kalessin’s avatar is at all representative, then English may not be their first language. ;-)
    – Synetech
    Feb 14, 2012 at 20:04
  • No, any confusion was certainly my fault.
    – EBGreen
    Feb 14, 2012 at 20:05

2 Answers 2

1

Assuming that C: is an NTFS volume, what you want is to create either an NTFS volume mount point or a junction point depending on your needs.


You can use Disk Management (diskmgmt.msc) to mount T: as a directory in C: or from the command-line (replace the GUID with the one of the target drive):

> md C:\Volumes\Test
> mountvol C:\Volumes\Test \\?\Volume{GUID}\


Alternately, you can also use mklink to create a junction point:

> mklink /j C:\Volumes\Test T:\

Since mklink is not included in Server 2003 (o.O), this shell-extension can be used to create and manage junction points.

4
  • I don't think either of these will work when T is a mapped network drive. Junction points are (sadly) user-context-independent, and mapped network drives are per-user-context. Feb 13, 2012 at 23:15
  • I couldn’t test because I don’t have any networked drives.
    – Synetech
    Feb 13, 2012 at 23:49
  • Mountvol lists possible values for the VolumeName parameter and drive T is not amongst them. I don't seem to have mklink available on my system, so I'll look into that... Edit: mklink is available only from Vista/Server 2008 onwards.
    – Kalessin
    Feb 14, 2012 at 15:28
  • @Kalessin, then Harry is correct; it does not support network drives. I would have thought that mklink would be available in Server2003 (considering it is a server edition). Well, junction points are nevertheless supported, so you can use this shell-extension (which should even make it easier to use).
    – Synetech
    Feb 14, 2012 at 20:05
0

I have used mklink to do exactly this. You don't even need to map a drive letter.

Using your example try this:

mklink /d c:\volumes\test \\servername\share

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .