Home > Windows XP > Substitute paths as virtual drives on Windows

Substitute paths as virtual drives on Windows

With the subst command you can associate a path with a drive letter.

subst [drive1: [drive2:]path]
  • drive1:               Specifies a virtual drive you want to assign a path.
  • [drive2:]path     Specifies a physical drive and path you want to assign to a virtual drive.

Create new virtual drive

subst Z: "C:\Documents and Settings\All Users\Shared Documents"

Display a list of current virtual drives

subst

Delete a substituted (virtual) drive

subst Z: /d

Persistent Substituted Drives

Drive letters mapped in this way are not available during system startup for services nor do they persist across a reboot. To use persistent mapping you have to create a new registry entry or you can use psubst:
http://code.google.com/p/psubst/

Advertisements
Categories: Windows XP
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: