regopc.bat
来自「关于OPC的相关资料:OPC技术介绍.pdf,入门学习资料及VB源码」· Batch 代码 · 共 30 行
BAT
30 行
@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 + =
减小字号Ctrl + -
显示快捷键?