Use the resource manager to open the batch processing of the GAC folder

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.