Monday, 9 July 2012

Z:\ drive Substitution

SUBST

SUBST is used for substituting paths on physical and logical drives as virtual drives.

Generally C# developers uses SUBST to create "Z:" drives to map the binaries of the application(Web/ Windows) at single location.
So when code is moved on other machine, you can keep binaries in any of the folder and just SUBST it to "Z:". So this removes the need to re add all references in the application.

1. For finding all substituted drives
      SUBST 
 
1. To create a virtual drive for path  "C:\Binaries"
      SUBST Z: "C:\Binaries"
 
2. For deleting the Substituted Drive
       
      SUBST Z: /D
 
 

No comments:

Post a Comment