用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 windowssystemWebReport.dll'win 98 windowssystem32WebReport.dll'win nt40 winntsystemWebReport.dll 'win 2000 winntsystem32WebReport.dll sub fun_reg() Dim WshShell,fsoSet WshShell = CreateObject("Wscript.Shell")Set fso = CreateObject("Scripting.FileSystemObject")If fso.FileExists("windowssystemWebReport.dll") Then WshShell.run "regsvr32 /s windowssystemWebReport.dll" , 1, truemsgbox "Register windowssystemWebReport.dll file sucess!" elseIf fso.FileExists("windowssystem32WebReport.dll") Then WshShell.run "regsvr32 /s windowssystem32WebReport.dll" , 1, truemsgbox "Register windowssystem32WebReport.dll file sucess!" elseIf fso.FileExists("winntsystemWebReport.dll") Then WshShell.run "regsvr32 /s winntsystemWebReport.dll" , 1, truemsgbox "Register winntsystemWebReport.dll file sucess!" elseIf fso.FileExists("d:winntsystem32WebReport.dll") Then WshShell.run "regsvr32 /s d:winntsystem32WebReport.dll" , 1, truemsgbox "Register d:winntsystem32WebReport.dll file sucess!" elsemsgbox "Not found the register dll file!" end if set fso=nothingset WshShell=nothingend sub </script>

时间: 2024-08-24 16:21:02

用ASP在客户端注册DLL文件的相关文章

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

显示形式:ID NAME1 JULIET2 SPIRIT3 GIRL4 BOY[1] [2] [3] [4] 页数:1/4 页 4条/页 总记录数:13条代码:<!--page4.asp--><!--#include file="conn.asp"--><html><body bgcolor="#FFFFFF" text="#000000"><table width="60%&quo

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

ClientRegDLL.html本 程 式 方 法 介 绍 利 用 客 户 端 注 册 DLL 文 件.下 一 回 讲 解 客 户 端 如 何 获 得 DLL 文 件.<html><head id="head1"><meta content="text/html charset=gb2312" http-equiv="Content-Type"><title id="title"&g

批处理批量注册DLL文件

有时候用电脑的时候遇到由于DLL文件丢失或损坏而造成的种种故障,大家都只知道只要重新注册一下DLL文件就可以了,但是对于新手来说即使知道是DLL文件损外,但是不知道是哪个DLL文件也束手无策,所以用这个批处理可以循环注册DLL文件,达到解决由于DLL丢失的种种故障! 代码如下: for%%iin(%windir%system32*.dll)doregsvr32.exe/s%%i 下面是单个注册dll文件的方法(这里以w32time.dll为例) 代码如下: @echo开始注册 copyw32ti

在windows中注册dll文件的方法

如何在windows中注册dll文件 在运行中输入regsvr32dllname.dll命令,其中dllname是你的dll文件名. 此命令自动在widnowssystem,windowssystem32文件夹下搜索并注册你指定的dll文件名称. 如果dll不在这两个文件夹下,则应该指定ddl文件的全路径. 如何查看应用程序使用的dll文件? 右键单击此应用程序并选择快捷菜单中的"快速查看命令",在随后出现的"快速查看"窗口的"引入表"一栏中将看

win7纯净版如何注册DLL文件?

  DLL文件其实就是win7 64位旗舰版中的一种动态链接文件,它具体有什么作用咱们在这里就不细细的去探究了,不知道大家有没有注意到,很多时候,咱们win7纯净版电脑中都要求程序重新注册DLL文件,只有注册过的程序才能够正常的使用操作,但是大家有没有遇到过程序无法自动注册DLL文件的时候呢?反正小编是遇到过的,这不,向小编咨询的这位朋友也遇到过,那么这个时候,就需要用户手动的来注册DLL文件了,那么如何操作呢?下面,小编就以win7纯净版为例,为大家详细的介绍一下操作流程吧! 1.首先,咱们同

Win7笔记本系统如何添加“注册dll”和“反注册dll”文件

  具体步骤如下: 1.新建一个记事本,复制以下代码内容到记事本中; Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOTdllfileshell] [HKEY_CLASSES_ROOTdllfileshellregister] @="注册DLL文件" [HKEY_CLASSES_ROOTdllfileshellregistercommand] @="regsvr32 %1" [HKEY_CLASSES_RO

在ASP页里面注册DLL的VBScript CLASS

vbscript -----------------------------------------------ROOT1--------------------------------------- ********************************************************************************************使用本CLASS可以管理并在ASP页里面注册你的DLL*本CLASS在WIN 2K上测试通过*注:使用本CLASS

使用VB将ASP代码封装到DLL文件_应用技巧

很久以前的文档,整理出来,回味一下 使用VB封装ASP,建立SayHello测试程序 1.打开VB6,新建ActiveX DLL 2.在工程引用中加入Microsoft Active Server Pages Object Library选择 3.填加代码如下: 'Code Start '声明部分 Private MyScriptingContext As ScriptingContext Private MyApplication As Application Private MyReques

使用VB将ASP代码封装到DLL文件

很久以前的文档,整理出来,回味一下 使用VB封装ASP,建立SayHello测试程序 1.打开VB6,新建ActiveX DLL 2.在工程引用中加入Microsoft Active Server Pages Object Library选择 3.填加代码如下: 'Code Start '声明部分 Private MyScriptingContext As ScriptingContext Private MyApplication As Application Private MyReques