June 25, 2009

[Windows Tip] Create virtual drives for any path or directory

Here is a tip which I explored today during my experiments with command prompt. You can create or say map a virtual drive to any directory in Windows Vista. Suppose you may want to create a short mapping for a long path such as D:\Users\s\game\dir1
C:\> SUBST Z: D:\Users\s\game\dir1
C:\> Z:
Z:\> "This is pointing to the above directory"
To remove the mapping, use the following option -
c:\> SUBST Z: /D
This is like mount points in linux/unix which are basically pointers.

No comments:

Post a Comment

I love feedback, please comment.