频道直达 - 学院 - 下载 - 交易 - 特效 - 字库 - 手册 -排名-工具- 繁體
网页教学网站开发 设为首页
加入收藏
联系我们
建站搜索: 常用广告代码   用户注册 | 用户登陆
您当前的位置:中国建站之家 -> 网站开发设计技术教程 -> asp教程 -> 利用ASP在客户端注册DLL文件

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

作者:未知  来源:转载  发布时间:2005-9-16 0:35:59  发布人:acx

减小字体 增大字体

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>

将本文收藏到QQ书签与更多好友分享
[打 印]
[] [返回上一页] [收 藏]
∷相关文章评论∷    (评论内容只代表网友观点,与本站立场无关!) [更多评论...]
精彩推荐
热门文章
· 注册码大全二
· 注册码大全四
· 注册码大全一
· 要10G免费网络硬盘的请进..
· 通过google 赶快来赚美金..
· 注册码大全十
· 头像-qq头像(qq新头像)4..
· 让你轻松架设FTP服务器1..
· 注册码大全三
· 梦幻背景图片7
· 卡通动物图片6
· 网页制作素材-按钮素材2..
· 让你轻松架设FTP服务器5..
· 风景图片8
· 注册码大全九
· 让你轻松架设FTP服务器2..
关注此文读者还看过
· 安啦动画教程 第四课 嘴..
· 如果微软收购QQ
· 搜狐正式启动奥运报道
· GIF图片素材4
· 检查ISBN号码是否合法
· 孙雁:八零后的女闪客
· 《Effective C#》翻译札..
· 淘宝店主网上尝试“内衣..
· 自动预览上传图(图片预..
· 域名专题 - Win2000功能..
· 十大照片优化秘籍(6)
· 优秀的社区软件Discuz!之..
· Photoshop实例提高:魔幻..
· 二级域名原理以及程序,..
· NHibernate: One-to-Man..
· XML卷之实战锦囊(1):..
相关文章
· 利用Asp.net Ajax异步获取x..
· 利用ASP显示当前在线人数
· 利用ASP存取各种常用类型数..
· 利用ASP制作EXECL报表方法(..
· 利用ASP制作EXECL报表方法(..
· 利用ASP改进文档上载控件
· 利用ASP的文件操作实现用户..
· 利用ASP+XML架设在线考试系..
· 利用ASP和Access数据库制作..
· 利用ASP存取各种常用类型数..
· 使用ASP中的VB ActiveX.dll..
· 利用AS控制声音教程
· 利用ASP显示当前在线人数
· 利用ASP在浏览器上打印输出..
· 利用ASP从远程服务器上接收..
· 利用ASP获得图象的实际尺寸..
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 人才招聘
网站合作、内容监督、商务咨询:QQ: 9576619
Copyright ? 2005--2008 中国建站之家版权所有
粤ICP备05092265号