开发者网络 动网主机 支持论坛 邮局 帮助
当前位置:网络学院ASP技术远程脚本 → 利用ASP在客户端注册DLL文 件
利用ASP在客户端注册DLL文 件
日期:2001年11月21日 作者:mana_long 人气:     [ ]
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>

(出处:开发者俱乐部)

相关文章:
 
·关于SQL Server中几个未公布的访问注册表的扩展存储过程
·ASP注册表项目修改
·架构Web Service: 描述与注册,发布Web服务
·.NET中带有口令加密的注册页面
·用Visual C#来删除注册表中的注册信息
·Vsiaul C#如何读取注册信息
·利用ASP远程注册DLL的方法
·利用ASP远程注册DLL的方法
·简易ASP+注册系统
·如何注册组件
相关软件:
 
·25175 会员注册系统登界面 v1.51
·cBF001电影系统C3注册版
·心理在线咨询系统(用户注册免验证) v2.6 美化版
·心理在线咨询系统(用户注册免验证) v2.1 非官方SQL版
·心理在线咨询系统(用户注册免验证) v2.1
·注册简易留言本
·aspedit 2001 注册正式版
·聊天室2.5注册版
·阿男提供江湖社区注册补丁
·一个非常好的会员注册ASP程序
说明:本站部分内容收集于网络,如有侵犯您的权益请来信告知,我们会第一时间进行处理,谢谢
 → 特别推荐
 → 热点TOP10

关于本站 | 诚聘英才 | 业务合作 | 联系我们 | 广告合作 | 收藏本站

海口动网先锋网络科技有限公司版权所有
Copyright ? 2000 - 2003 AspSky.Net
中华人民共和国电信与信息服务业务经营许可证编号 琼 ICP 020077