软件分类 系统工具 网络工具 媒体工具 安全相关 图形图像 游戏娱乐 应用软件 书籍教程 精典栏目 源码素材 最新更新 资讯排行 下载排行

  
您的位置:首页-> 资讯中心-> 网络编程-> ASP技术-> 利用ASP在客户端注册DLL文件

ASP技术

ASP技术
PHP技术
JSP技术
数据库类

本类阅读TOP10

·教你1小时里搞定ASP(精典)
·ASP中页面限权访问的几种方法
·ASP提速技巧
·ASP中实现小偷程序的原理和简单示例
·最大限度优化你的Asp性能
·ASP设计常见问题及解答精要
·ASP对excel的操作
·利用ASP在客户端注册DLL文件
·关于函数参数问题
·ASP如何获取真实IP地址

精品推荐
利用ASP在客户端注册DLL文件

浏览字号:【 】 【打印】 【关闭窗口

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>


来源:不详 加入时间:2005-3-25


相关文章
  • ASP中页面限权访问的几种方法
  • ASP提速技巧
  • 最大限度优化你的Asp性能
  • ASP设计常见问题及解答精要
  • 教你1小时里搞定ASP(精典)
  • 论Asp与XML的关系
  • HTML页面如何象asp一样接受参数
  • 相关软件

  • 卡巴斯基(Kaspersky) KAV V6.0.307 官方简体中文特别版
  • 卡巴斯基(Kaspersky) KAV V6.0.2.546 Beta 汉化测试版
  • Kaspersky Anti-Virus 6.0.1.411 MP1 简体中文特别版
  • ASPMaker V5.2 英文特别版
  • 卡巴斯基Kaspersky 纯DOS(硬盘+软盘+光盘+闪盘+虚拟盘通用)版 V20051223
  • RASPPPOE V0.98b 汉化版
  • Kaspersky Anti-Hacker (卡巴斯基反黑客) V1.8 Build 180 简体中文注册版
  • 阿江ASP探针 V1.9-050517
  • ASProtect V2.11 SKE Release 汉化注册版
  • HTML转化ASP,JS,PHP程序

  • 软件先锋版权所有 SOFT168.COM (C)1998-2004,业务联系QQ:285058