windows下microsoft html object library 有时在系统升级后会出现问题,造成不能被正确引用。解决方法如下:
@ECHO OFF
if exist %windir%SysWOW64 goto X64
:X86
ECHO 32位系统注册 MSCOMCTL.OCX ...
copy MSCOMCTL.OCX %windir%system32
%windir%system32regsvr32 /u mscomctl.ocx /s
%windir%system32regsvr32 mscomctl.ocx /s
%windir%regtlib msdatsrc.tlb
@pause
exit
:X64
ECHO 64位系统注册 MSCOMCTL.OCX ...
copy MSCOMCTL.OCX %windir%sysWOW64
%windir%sysWOW64regsvr32 /u mscomctl.ocx /s
%windir%sysWOW64regsvr32 mscomctl.ocx /s
%windir%regtlib msdatsrc.tlb
@pause
本文为Lokie.Wang原创文章,转载无需和我联系,但请注明来自lokie博客http://lokie.wang