Thursday, February 19, 2009

Mapping Local Paths to Drives





In Windows network shares can be mapped as local drives by doing Right-Click on Network and by selecting Map Network Drive.


There is a command to map even local path names.
Command : subst [from command prompt]


Syntax :


C:\Documents and Settings\oracle>subst /?
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.



If the user needs to map a drive say 'C:\temp' to 'S:\' he needs to use the following command
subst s: c:\temp


To list the virtual drives created type

subst


To remove the prev created virtual drive

subst s: /D



Purpose :
Users who play games and create iso`s will find this useful ;-)
Something similar to virtual CD drive

No comments:

Post a Comment