Sharepoint Insight by Namwar Rizvi

May 30, 2009

Quickest way to copy files from GAC

Filed under: Management, Tips — namwar @ 9:18 pm
Tags: , , ,

Yes, I know how painful it is to realize that you can not copy an assembly out from Global Assembly Cache (GAC), at least not by usual way of copying a file from a windows folder. Don’t worry, there are some ways to do it and the quickest way to browse the GAC and copy files from it is to just map a drive on Windows\Assembly folder.

Here you go, 

  1. From Start-Run type cmd to launch command prompt
  2. Type subst Z: C:\windows\Assembly and press Enter
  3. Thats it!

Now, you got a drive Z which is mapped to your GAC folder and you can easily open it in Windows Explorer and copy files from it.

Isn’t it easy?


1 Comment »

  1. Hi,
    When trying this in Windows Server 2008 R2, the copy command runs through fine, but no files are copied over to the GAC

    Comment by Ole Kristian — November 3, 2009 @ 1:11 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.