How to map a path to a drive in windows

Hi all,

Can anybody explain me about mapping a path to a drive with example?

Thanks

A local path or network path?

C:\Documents and Settings\Owner\My Documents>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.

C:\Documents and Settings\Owner\My Documents>H:
The system cannot find the drive specified.

C:\Documents and Settings\Owner\My Documents>subst H: "C:\Documents and Settings\Owner"

C:\Documents and Settings\Owner\My Documents>H:

H:\>dir
 Volume in drive H is winxp
 Volume Serial Number is FC29-5D06

 Directory of H:\

06/01/2011  09:42 PM    <DIR>          .
06/01/2011  09:42 PM    <DIR>          ..
06/18/2011  01:41 AM    <DIR>          Desktop
03/31/2011  10:08 PM    <DIR>          Favorites
06/25/2011  03:06 PM    <DIR>          My Documents
06/09/2011  07:01 PM    <DIR>          Start Menu
               0 File(s)              0 bytes
              14 Dir(s)  230,540,996,608 bytes free

Thank you ...

Late to the game...but... Two ways to do this easily

  1. Map the drive in Explorer
  2. Check the 'net use' command <there are lots of examples on the net>