小智 6
Regsvr32.exe用法
Run Code Online (Sandbox Code Playgroud)RegSvr32.exe has the following command-line options: Regsvr32 [/u] [/n] [/i[:cmdline]] dllname /u - Unregister server /i - Call DllInstall passing it an optional [cmdline]; when used with /u calls dll uninstall /n - do not call DllRegisterServer; this option must be used with /i /s – Silent; display no message boxes (added with Windows XP and Windows Vista)使用时
Regsvr32.exe,它会尝试加载组件并调用其DLLSelfRegister功能.如果此尝试成功,则Regsvr32.exe显示一个表示成功的对话框.如果尝试失败,则Regsvr32.exe返回错误消息.这可能包括Win32错误代码.
因此,生成的批处理文件将是:
echo off
Regsvr32 /s C:\MyDLL.dll
exit
Run Code Online (Sandbox Code Playgroud)