When developing controls on the. NET platform, you often need to decompile Microsoft class libraries in GAC. However, copying files in GAC is inconvenient. To improve work efficiency, we specially wrote a batch processing file to use the resource manager to open the file in GAC and view it directly.
Share it here for users who need it. NOTE: For the Vista system, use the Administrator permission to open the batch file.
@ Echo Please Run As administrator!
@ Choice / T 10 / D 1 / C 12 / M " 1, open GAC 2, revert GAC "
Goto Answer % Errorlevel %
: Answer1
@ Echo Open GAC
@ Attrib -H-S % SystemRoot % \ Assembly \ Desktop . Ini
@ If Exist % SystemRoot % \ Assembly \ Desktop . Ini Del / F % SystemRoot % \ Assembly \ Temp . Ini
@ Ren % SystemRoot % \ Assembly \ Desktop . INI temp . Ini
@ Start % SystemRoot % \ Assembly \
@ Goto End
: Answer2
@ Echo Revert GAC
@ Ren % SystemRoot % \ Assembly \ Temp . INI Desktop . Ini
@ Attrib + H + S % SystemRoot % \ Assembly \ Desktop . Ini
@ Goto End
: End
@ Echo End