ASPEXEC组件介绍和下载(ASP运行服务端exe方法)
作者:刚子 日期:2010-06-07
ASPEXEC可以执行服务器端,可执行文件。
ASPEXEC 3.0語法使用說明..
1.使用ASPEXEC之前,請先註冊ASPEXEC.DLL這一個物件
其註冊語法如下:
Regsvr32 ASPEXEC.DLL
2.語法說明
Set Executor = Server.CreateObject("ASPExec.Execute")
'這是建立物件名稱的語法
Application
'這是執行的應用程式的檔名稱與路徑
Executor.Application = "notepad.exe"
Parameters
'這是執行的應用程式的參數
Executor.Parameters = "c:\autoexec.bat"
TimeOut
'這是執行的應用程式的等待時間(ms)
Executor.TimeOut = "6000"
ShowWindow
'這是執行的應用程式時是否要顯示視窗
Executor.ShowWindow = Ture
ExecuteDosApp
'Executes the specified app as a DOS app and returns stdio as string
Executor.ExecuteDosApp
ExecuteWinAppAndWait
'Execute the specified app as a Windows app and wait for the specified timeout if exec is successful
ExecuteWinApp
'Execute the specified app as a Windows app and return result code immediately
3.範例
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "notepad.exe"
Executor.Parameters = "c:\autoexec.bat"
Executor.ShowWindow = True
Response.Write "Attempting to execute " & Executor.Application & "<br>"
strResult = Executor.ExecuteWinApp
Response.Write "The result of this call was: " & strResult
点击下载此文件
ASPEXEC 3.0語法使用說明..
1.使用ASPEXEC之前,請先註冊ASPEXEC.DLL這一個物件
其註冊語法如下:
Regsvr32 ASPEXEC.DLL
2.語法說明
Set Executor = Server.CreateObject("ASPExec.Execute")
'這是建立物件名稱的語法
Application
'這是執行的應用程式的檔名稱與路徑
Executor.Application = "notepad.exe"
Parameters
'這是執行的應用程式的參數
Executor.Parameters = "c:\autoexec.bat"
TimeOut
'這是執行的應用程式的等待時間(ms)
Executor.TimeOut = "6000"
ShowWindow
'這是執行的應用程式時是否要顯示視窗
Executor.ShowWindow = Ture
ExecuteDosApp
'Executes the specified app as a DOS app and returns stdio as string
Executor.ExecuteDosApp
ExecuteWinAppAndWait
'Execute the specified app as a Windows app and wait for the specified timeout if exec is successful
ExecuteWinApp
'Execute the specified app as a Windows app and return result code immediately
3.範例
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "notepad.exe"
Executor.Parameters = "c:\autoexec.bat"
Executor.ShowWindow = True
Response.Write "Attempting to execute " & Executor.Application & "<br>"
strResult = Executor.ExecuteWinApp
Response.Write "The result of this call was: " & strResult
点击下载此文件评论: 0 | 引用: 0 | 查看次数: -
发表评论
上一篇
下一篇

文章来自:
Tags: