用ASP在用戶端註冊DLL檔案

來源:互聯網
上載者:User
ClientRegDLL.html本 程 式 方 法 介 紹 利 用 客 戶 端 注 冊 DLL 文 件。
 下 一 回 講 解 客 戶 端 如 何 獲 得 DLL 文 件。<html><head id="head1"><meta content="text/html charset=gb2312" http-equiv="Content-Type"><title id="title">Client use asp to register the exist dll file</title></head><body bgColor="skyblue" topMargin=0 leftMargin="0" rightMargin="0" bottomMargin="0"><div align="center"><table><tr><td>Client use asp to register the exist dll file</td></tr></table></div><input type="button" value="Register dll" name="reg_dll" language="vbscript" onclick="fun_reg()"> </body></html><script language="vbscript">' we had produce the WebReport.dll file and place in the client 'win <98 windowssystemWebReport.dll'win 98 windowssystem32WebReport.dll'win nt40 winntsystemWebReport.dll 'win 2000 winntsystem32WebReport.dll sub fun_reg() Dim WshShell,fsoSet WshShell = CreateObject("Wscript.Shell")Set fso = CreateObject("Scripting.FileSystemObject")If fso.FileExists("windowssystemWebReport.dll") Then WshShell.run "regsvr32 /s windowssystemWebReport.dll" , 1, truemsgbox "Register windowssystemWebReport.dll file sucess!" elseIf fso.FileExists("windowssystem32WebReport.dll") Then WshShell.run "regsvr32 /s windowssystem32WebReport.dll" , 1, truemsgbox "Register windowssystem32WebReport.dll file sucess!" elseIf fso.FileExists("winntsystemWebReport.dll") Then WshShell.run "regsvr32 /s winntsystemWebReport.dll" , 1, truemsgbox "Register winntsystemWebReport.dll file sucess!" elseIf fso.FileExists("d:winntsystem32WebReport.dll") Then WshShell.run "regsvr32 /s d:winntsystem32WebReport.dll" , 1, truemsgbox "Register d:winntsystem32WebReport.dll file sucess!" elsemsgbox "Not found the register dll file!" end if set fso=nothingset WshShell=nothingend sub </script>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.