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

2016-01-29 17:34 27 1 收藏

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

【 tulaoshi.com - ASP 】

  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<tdClient 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 windowssystemWebReport.dll
'win 98 windowssystem32WebReport.dll
'win nt40 winntsystemWebReport.dll
'win 2000 winntsystem32WebReport.dll
sub fun_reg()
Dim WshShell,fso
Set WshShell = CreateObject("Wscript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")

If fso.FileExists("windowssystemWebReport.dll") Then
WshShell.run "regsvr32 /s windowssystemWebReport.dll" , 1, true
msgbox "Register windowssystemWebReport.dll file sucess!"

elseIf fso.FileExists("windowssystem32WebReport.dll") Then
WshShell.run "regsvr32 /s windowssystem32WebReport.dll" , 1, true
msgbox "Register windowssystem32WebReport.dll file sucess!"

elseIf fso.FileExists("winntsystemWebReport.dll") Then
WshShell.run "regsvr32 /s winntsystemWebReport.dll" , 1, true
msgbox "Register winntsystemWebReport.dll file sucess!"

elseIf fso.FileExists("d:winntsystem32WebReport.dll") Then
WshShell.run "regsvr32 /s d:winntsystem32WebReport.dll" , 1, true
msgbox "Register d:winntsystem32WebReport.dll file sucess!"
else
msgbox "Not found the register dll file!"
end if
set fso=nothing
set WshShell=nothing

end sub
</script

 

来源:https://www.tulaoshi.com/n/20160129/1502002.html

延伸阅读
标签: ASP
       在ASP文件中调用DLL   作者:陈敏杰    动态联接库(DLL)是加快应用程序关键部分的执行速度的重要方法,但有一点恐怕大部分人都不知道,那就是在ASP文件也能通过调用DLL来加快服务器的执行速度,下面我简单的介绍一下在ASP文件调用DLL的步骤。    首先,必须...
标签: ASP
  先贴一篇较简单的用ASP+RDS客户端参生报表 此文希望能进精华篇 下一回贴一篇较复杂的 说明:(若提示ActiveX 元件无法参生 RDS.DataSpace) IE需设置安全选项 操作:菜单工具-INTERNET选项-安全性-自定义 设置 起始但ActiveX不标示为安全-开启 <html <head <META content="text/html; charset=gb2312" http-equiv=...
标签: Web开发
try {                     var shell = new ActiveXObject("WScript.Shell");      //读注册表值 var  key1  = shell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\ei...
易信电脑客户端注册图文教程 小编所说的"易信电脑客户端"指的是通过安卓模拟器在pc上运行的易信,并不是官方发布的易信pc版,下边来教大家使用安卓模拟器运行易信的注册方法! 1.安装易信电脑客户端 很简单的哈,下载易信apk文件,选择在安卓模拟器中打开就可以自动安装了,安装完成后在安卓模拟器"我的应用&qu...
广发有米银行客户端怎么注册   1、打开广发有米直销银行app,点击立即注册 2、在注册页面,输入您的信息,点击提交注册 3、输入您的手势密码,就可以成功注册 4、注册成功后,弹出实名认证的界面,如果不想先实名认证,就可以点击看看产品再说,就可以进入广发有米直销银行app首页

经验教程

40

收藏

80
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部