在.NET平台下开发控件,经常需要反编译GAC中微软的类库。然而拷贝GAC中的文件很不方便。为了提高工作效率,特地写了个批处理文件来用资源管理器打开GAC中的文件直接查看。
共享在这里,给需要的人使用。注意,如果是Vista系统,请用管理员权限打开批处理文件。

@echo Please run as administrator!
@
choice /10 /1 /12 /"1,Open GAC 2,Revert GAC"
goto answer%ERRORLEVEL%
:answer1
@echo Open GAC用资源管理器打开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用资源管理器打开GAC文件夹的批处理
@
ren %SystemRoot%\assembly\temp.ini desktop.ini
@
attrib ++s %SystemRoot%\assembly\desktop.ini
@
goto end

:end
@echo End用资源管理器打开GAC文件夹的批处理

相关文章:

  • 2021-05-05
  • 2021-11-18
  • 2021-11-18
  • 2021-09-25
  • 2022-02-18
  • 2021-12-14
  • 2022-02-01
  • 2021-11-03
猜你喜欢
  • 2021-11-18
  • 2021-12-14
  • 2022-02-04
  • 2021-10-15
  • 2021-12-30
  • 2021-05-03
相关资源
相似解决方案