Thursday, September 11, 2008

Mapping folders to drive letters

Why would you want to map a folder to a drive letter? Maybe some folder you work with constantly is hidden under a convoluted folder structure, like: ‘U:DataUser FilesSharedClientsVIPClientPensky FileProject 232’ Wouldn’t it be easier to refer to it as: R: ?This is pretty common to do with network locations under Tools -> Map Network Drive. However I didn’t know of a way to do this with local folders until recently. You can either do it via command line or use a simple program known as Visual Subst.(1) Using “subst” commandUnder Windows, there is a legacy dos command named “subst”: C:>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:>

read more | digg story