Showing posts with label Download assembly from GAC. Show all posts
Showing posts with label Download assembly from GAC. Show all posts

Wednesday, February 15, 2012

Download assembly files from GAC in Windows

Hi All,
Recently, I was in a excercise to update all the custom development work to new server. But, as usual, the original files missed from the file system. So i plan to download the dll files from GAC.
usually the GAC files structure is different from the normal file structure. So i have used the below command to download the latest dlls from GAC.
There is a command available in Windows to download the assembly called "subst".
so the command would look like as below. run the command in the command prompt.

subst Z: C:\windows\Assembly

When you go to the my computer you will find a new drive under the regular drives. Just go inside and you can see all the GAC files. The folder GAC_MSIL is what your all files reside in. Copy the
dll's you needed and paste them in some safe location for backup.


To remove the Z drive from machine, then use below command. run the command as mentioned below.

subst Z: /D