怎么样注册注销某个文件夹中所有的ocx,dll,com,tlb?如果控件在system32中就不要注册也不要注销,这样的批处理怎么写?

gzsxy8013 2006-08-28 09:53:19
if %%1==/d (
for %%f in (*.ocx) do if not exist %windir%\system32\%%f (regsvr32 %%f) else (regsvr32 %windir%\system32\%%f)
for %%f in (*.dll) do if not exist %windir%\system32\%%f (regsvr32 %%f) else (regsvr32 %windir%\system32\%%f)
)
else (
for %%f in (*.ocx) do if not exist %windir%\system32\%%f (regsvr32 /s %%f) else (regsvr32 /s %windir%\system32\%%f)
for %%f in (*.dll) do if not exist %windir%\system32\%%f (regsvr32 /s %%f) else (regsvr32 /s %windir%\system32\%%f)
)

这是我们老大写的 有没有问题
对于dos 我不是很懂
...全文
348 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
gzsxy8013 2006-09-04
  • 打赏
  • 举报
回复
upupupupupupupu

好像现在vb版不怎么样了?
gzsxy8013 2006-08-28
  • 打赏
  • 举报
回复
uopupupupup
gzsxy8013 2006-08-28
  • 打赏
  • 举报
回复
.\point.ocx
这是相对哪个目录
能不能解释一下

好像没有能按照控件是否在system32 下的情况作出里阿
ZOU_SEAFARER 2006-08-28
  • 打赏
  • 举报
回复
ECHO ON
regsvr32.exe /s .\Analog.ocx
regsvr32.exe /s .\LampSwitch.ocx
regsvr32.exe /s .\BarGraph.ocx
regsvr32.exe /s .\Meter.ocx
regsvr32.exe /s .\Trend.ocx
regsvr32.exe /s .\point.ocx
regsvr32.exe /s .\PowerSet.ocx
regsvr32.exe /s .\Switch.ocx
regsvr32.exe /s .\UzAnimat.ocx
regsvr32.exe /s .\Uzbutton.ocx
regsvr32.exe /s .\NetRTE.ocx
regsvr32.exe /s .\UzArc.ocx
ECHO OCX Update Finished
pause

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧