Map drive letter to local folder?

P

Paul Kraemer

Hi,

I am running Windowns XP Pro. Is there a way to map a
drive letter to a local folder on my PC. I can do this
to a folder on a PC elsewhere on my network, but I
couldn't seem to do it to a local folder.

Thanks,
Paul
 
R

Russell

Open up a 'command prompt' window and use the
command 'SUBST'.

type 'help subst' to get syntex.
 
V

*Vanguard*

Paul Kraemer said:
Hi,

I am running Windowns XP Pro. Is there a way to map a
drive letter to a local folder on my PC. I can do this
to a folder on a PC elsewhere on my network, but I
couldn't seem to do it to a local folder.

Thanks,
Paul

Just run "subst /?" at a DOS prompt which will show the following help:

Associates a path with a drive letter.

SUBST [drive1: [drive2:]path]
SUBST drive1: /D

drive1: Specifies a virtual drive to which you want to assign a
path.
[drive2:]path Specifies a physical drive and path you want to assign
to
a virtual drive.
/D Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual
drives.

That definition probably only exists within the DOS shell where you ran
the subst command. For a more permanent solution, try using a junction
(aka reparse point). None of the NT-based versions of Windows come with
tools to create junctions. Junctions are only supported when using NTFS
because the junction is defined within the file system rather than using
a user-configurable .lnk file for a shortcut. You can get the Resource
Kit to use the linkd program, or do a Google search for "Junction Link
Magic".
 

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

Top