上一篇:动态伸缩ie窗口(酷)(天乐原创) >>
利 用 ASP 在 客 户 端 注 册 DLL 文 件!
本 程 式 方 法 介 绍 利 用 客 户 端 注 册 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>
下一篇:我有2个类似的js,不知道有用否 1 >>
相关文章:
- · js有几个缺陷。combox1.doSelectIdx(-1)我看不用调用了。
- · 层不能跨框架(包括TEXTAREA)显示的解决办法
- · 罗亭的可输入下拉框的解密简化版.
- · IE里的探索之浏览器概览
- · IE里的探索之向标准上下文相关菜单里添加条目
- · IE里的探索之添加浏览器栏
- · IE里的探索之添加工具条按钮(2)
- · IE里的探索之添加工具条按钮(1)
- · IE里的探索之创建具有良好行为的自定义元素
- · IE里的探索之定制浏览器好助手(上1)
- · IE里的探索之定制浏览器好助手(上2)
- · IE里的探索之定制浏览器好助手(中1)
- · IE里的探索之定制浏览器好助手(下)
- · IE里的探索(想定制自己的IE的可以看一看)
- · 这个object还有其他几种用法.现在贴了给大家.
- · 自动关闭窗口,方法总结
- · 这个脚本可以使你方便得获得各网站的连接速度
- · 列表框操作函数集合
- · 常用javascript函数(一)
- · 控制输出字符串的长度,可以区别中英文
- · 常用javascript函数(二)
- · 如何判断客户端浏览器的脚本js.vbs功能是否被禁止,通过隐藏域实现
- · 台湾的两篇文章,看看也好:唯讀的表單文字輸入項
- · Creating CSS Buttons (一)
- · Creating CSS Buttons (二)
- · 用javascript实现浮点数的截取小数位数,并四舍五入
- · three trim function(javascript)
- · 用ASP将javascript代码写入客户端执行的一种简易方法。。。
- · Trim Function in javascript
- · java分页源码
- · 过滤表格中的链接(用javascript提取表格中的数据)
- · 来看看哟.一个天气预报的小偷.可以偷到每天更新的全国24小时城市天气预报.
- · 一个把WORD转换成HTML的程序
- · 饮水思源,我从这里学到的知识投入应用,现在再奉献回给大家(可编辑页面的部分属性)
- · 用 WSH 想ASP 一样 查询数据库!(WSH 学习心得2)
- · 一段窗口自动关闭的源代码,不受js打开的限制,与大家共享!
- · 带进度条的关闭窗口,绝对有用!并可根据需要改写。
- · 一组javascript绘图函数
