📄 regopc.bat
字号:
@echo off
if '%PROCESSOR_ARCHITECTURE%'=='' SET RegSvr32Path=%windir%\SYSTEM\
if '%1' == '' goto reg
if '%1' == '/u' goto unreg
echo "invalid flag."
goto end
:reg
@echo on
%RegSvr32Path%RegSvr32 /s opccomn_ps.dll
%RegSvr32Path%RegSvr32 /s opcproxy.dll
%RegSvr32Path%RegSvr32 /s opcdaauto.dll
%RegSvr32Path%RegSvr32 /s OPCTrend.ocx
%RegSvr32Path%RegSvr32 /s OPCBar.ocx
OpcServer.exe /RegServer
OPCJDADemoServer /RegServer
@echo off
goto end
:unreg
@echo on
%RegSvr32Path%RegSvr32 /s /u opccomn_ps.dll
%RegSvr32Path%RegSvr32 /s /u opcproxy.dll
%RegSvr32Path%RegSvr32 /s /u opcdaauto.dll
%RegSvr32Path%RegSvr32 /s /u OPCTrend.ocx
%RegSvr32Path%RegSvr32 /s /u OPCBar.ocx
OpcServer.exe /UnregServer
OPCJDADemoServer /UnregServer
:end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -