标题: [注册表类] rxregsvr.exe - 有退出码的 regsvr32 [打印本页]
作者: tmplinshi 时间: 2011-6-28 22:03 标题: rxregsvr.exe - 有退出码的 regsvr32
============================
http://bcn.bathome.net/s/tool/index.html?key=rxregsvr
http://www.regxplor.com/other.html
============================
使用方法跟 regsvr32 完全一样。- @echo off
- RxRegSvr /s test.dll >nul
- if errorlevel 1 (echo 注册失败) else echo 注册成功
- pause
复制代码
作者: Hello123World 时间: 2011-6-29 12:26
rxregsvr除了退出码还有多的功能吗?
作者: tmplinshi 时间: 2011-6-29 14:08
2# Hello123World
没有。
作者: tmplinshi 时间: 2011-6-29 14:15
才发现 nircmd 可以记录结果:
regsvr [reg or unreg] [filename or wildcard] {log file}
Register or unregister DLL/OCX files.
In the first parameter, specify "reg" for registering files, or "unreg" for unregistering files.
In the second parameter, you can specify a single file that you want to register or unregister, or multiple files, by using wildcard.
The third parameter is optional, and specifies a log filename for saving the results of the registering operation.
Examples:
regsvr reg "f:\winnt\system32\fv*.ocx" "c:\temp\log1.txt"
regsvr unreg "f:\winnt\system32\ab*.dll"
欢迎光临 批处理之家 (http://bbs.bathome.net/) |
Powered by Discuz! 7.2 |