日韩欧美国产精品免费一二-日韩欧美国产精品亚洲二区-日韩欧美国产精品专区-日韩欧美国产另-日韩欧美国产免费看-日韩欧美国产免费看清风阁

LOGO OA教程 ERP教程 模切知識(shí)交流 PMS教程 CRM教程 開發(fā)文檔 其他文檔  
 
網(wǎng)站管理員

Asp.net執(zhí)行服務(wù)器端的可執(zhí)行文件

admin
2011年4月22日 14:49 本文熱度 3489

方法一、process



string user = "sde";
string user1= "sys";
string pwd1 = "sys";
string pwd = "sde";
string db = "wbz";
string dir = @"c:\wbz1";
string cmd =@"/c exp "+user+"/"+pwd+"@"+db+" owner="+user+" file="+dir+".dmp";
Process myprocess=Process.Start("cmd", cmd);
myprocess.WaitForExit();
myprocess.Exited +=new EventHandler(myprocess_Exited);


In order to execute exp.exe of Oracle,   IIS must has powerful previlege. In Web.Config, identity node must be added.


<identity impersonate="true" userName="Administrator" password="passwd" />

In machine.config, the processModel node’s userName attribute should be changed to SYSTEM.



<processModel userName="SYSTEM" password="AutoGenerate" />


 


方法二、ASPEXEC組件法

 

ASPEXEC ASPEXEC是一個(gè)免費(fèi)的ASP組件,它可以執(zhí)行Server端DOS與Windows的應(yīng)用程序。

ASPEXEC 3.0語法使用說明:

 

1.使用ASPEXEC之前,請(qǐng)先注冊(cè)ASPEXEC.DLL這一個(gè)組件,其注冊(cè)語法如下:
   Regsvr32 ASPEXEC.DLL

 

2.語法說明  
   Set Executor = Server.CreateObject("ASPExec.Execute")
   '這是建立組件的語法


   Application
   '這是執(zhí)行的應(yīng)用程序的檔名稱與路徑
   Executor.Application = "notepad.exe"

 

   Parameters
   '這是執(zhí)行的應(yīng)用程序的參數(shù)
   Executor.Parameters = "c:\autoexec.bat"

 

   TimeOut
   '這是執(zhí)行應(yīng)用程序的等待時(shí)間(ms)
   Executor.TimeOut = "6000"

 

   ShowWindow
   '這是執(zhí)行的應(yīng)用程式時(shí)是否要顯示視窗
   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

該文章在 2011/4/22 14:49:12 編輯過
關(guān)鍵字查詢
相關(guān)文章
正在查詢...
點(diǎn)晴ERP是一款針對(duì)中小制造業(yè)的專業(yè)生產(chǎn)管理軟件系統(tǒng),系統(tǒng)成熟度和易用性得到了國(guó)內(nèi)大量中小企業(yè)的青睞。
點(diǎn)晴PMS碼頭管理系統(tǒng)主要針對(duì)港口碼頭集裝箱與散貨日常運(yùn)作、調(diào)度、堆場(chǎng)、車隊(duì)、財(cái)務(wù)費(fèi)用、相關(guān)報(bào)表等業(yè)務(wù)管理,結(jié)合碼頭的業(yè)務(wù)特點(diǎn),圍繞調(diào)度、堆場(chǎng)作業(yè)而開發(fā)的。集技術(shù)的先進(jìn)性、管理的有效性于一體,是物流碼頭及其他港口類企業(yè)的高效ERP管理信息系統(tǒng)。
點(diǎn)晴WMS倉(cāng)儲(chǔ)管理系統(tǒng)提供了貨物產(chǎn)品管理,銷售管理,采購(gòu)管理,倉(cāng)儲(chǔ)管理,倉(cāng)庫(kù)管理,保質(zhì)期管理,貨位管理,庫(kù)位管理,生產(chǎn)管理,WMS管理系統(tǒng),標(biāo)簽打印,條形碼,二維碼管理,批號(hào)管理軟件。
點(diǎn)晴免費(fèi)OA是一款軟件和通用服務(wù)都免費(fèi),不限功能、不限時(shí)間、不限用戶的免費(fèi)OA協(xié)同辦公管理系統(tǒng)。
Copyright 2010-2025 ClickSun All Rights Reserved

主站蜘蛛池模板: 国产xxxxx| 国产精品4p露脸在线播放 | 国产免费福利不 | 国产一卡2卡3卡4卡网站免费 | 国产精品4p露脸在线播放 | 日本三级网站在线观看视频 | 免费动漫网站 | 成人三级视频在线观看 | 91精品国产人成网站 | 日韩中文字幕 | 国内精品视频成人一区 | 亚洲日韩色在 | 国产在线脚交免费网站脚丫 | 亚洲清纯自偷自拍另类专区 | 91福利在线观看视频 | 亚洲国产最大aⅴ | 欧美性一区二区三区 | 国产美女一级做视须爱 | 国产日韩中文字幕 | 欧洲精品卡1区2卡三卡四卡 | 国产成年无 | 久精品国产欧美亚洲色a大片 | 国产免费中文字幕v在线 | 精品在线视频 | 日本特级婬片中文免费看 | 好看的电视剧全集免费在线观看 | 欧美精品自拍一区 | 精品伦精品一区二区三区视 | 91香蕉国产| 日本亲子乱在线播放 | 欧美日韩免费观看 | 91碰碰视频 | 国产视频999| 亚洲国产日韩欧美视频二区 | 国产免费私拍一区二区三区 | 97在线也免费视频 | 欧美乱大交xxxxx变态 | 免费人成网站免费看视频 | 欧美性爱精品一级大片 | 羞羞午夜 | 在线观看午夜福利院视频 |