將 .dll 檔案註冊為登錄中的命令元件。
語法
regsvr32 [/u] [/s] [/n] [/i[:cmdline]] <Dllname>
參數
參數 | 說明 |
---|---|
/u | 取消註冊伺服器。 |
/s | 防止顯示訊息。 |
/n | 防止呼叫 DllRegisterServer。 此參數會要求您也使用 /i 參數。 |
/i:<cmdline> |
將選擇性命令列字串 (cmdline) 傳遞至 DllInstall。 如果您使用此參數搭配 /u 參數,它會呼叫 DllUninstall。 |
<Dllname> |
要註冊之 .dll 檔的名稱。 |
/? | 在命令提示字元中顯示說明。 |
範例
若要註冊 Active Directory 架構的 .dll,請輸入:
regsvr32 schmmgmt.dll