欢迎光临
我们一直在努力

利用ASP在客户端注册DLL文 件

建站超值云服务器,限时71元/月

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 \windows\system\webreport.dll

win 98 \windows\system32\webreport.dll

win nt40 \winnt\system\webreport.dll

win 2000 \winnt\system32\webreport.dll

sub fun_reg()

dim wshshell,fso

set wshshell = createobject("wscript.shell")

set fso = createobject("scripting.filesystemobject")

if fso.fileexists("\windows\system\webreport.dll") then

wshshell.run "regsvr32 /s \windows\system\webreport.dll" , 1, true

msgbox "register \windows\system\webreport.dll file sucess!"

elseif fso.fileexists("\windows\system32\webreport.dll") then

wshshell.run "regsvr32 /s \windows\system32\webreport.dll" , 1, true

msgbox "register \windows\system32\webreport.dll file sucess!"

elseif fso.fileexists("\winnt\system\webreport.dll") then

wshshell.run "regsvr32 /s \winnt\system\webreport.dll" , 1, true

msgbox "register \winnt\system\webreport.dll file sucess!"

elseif fso.fileexists("d:\winnt\system32\webreport.dll") then

wshshell.run "regsvr32 /s d:\winnt\system32\webreport.dll" , 1, true

msgbox "register d:\winnt\system32\webreport.dll file sucess!"

else

msgbox "not found the register dll file!"

end if

set fso=nothing

set wshshell=nothing

end sub

</script>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 利用ASP在客户端注册DLL文 件
分享到: 更多 (0)

相关推荐

  • 暂无文章