ado物件:
connection
command
recordset
record
stream
asp支援的物件很多,可以自己編寫com元件,下面是我們經常使用的:
//關於sql server的
createobject("sqldmo.sqlserver")
createobject("sqldmo.login")
createobject("sqldmo.backup")
createobject("sqldmo.user")
server.createobject("sqldmo.backupdevice")
server.createobject("sqldmo.database")
server.createobject("sqldmo.restore")
//msmq的
server.createobject("msmq.msmqqueueinfo")
createobject("msmq.msmqquery")
//全文索引的
server.createobject("ixsso.query")
server.createobject("ixsso.util")
郵件傳送的元件我沒有總結,請熱心的朋友總結出來:
cdo,jmail,imail等。
下面一些是不太常見的物件:
accpac advantage corporate:
oaccpac=createobject("accpac.xapisession")
groupwise:
ogroupwise = createobject("novellgroupwaresession")
lotusnotes:
onotes = createobject("notes.notessession")
onotes = createobject("notes.notesuiworkspace")
onotes = createobject("lotus.notessession")(domino 5.0.3)
ms common dialog:
ocommmondialog = createobject("mscomdlg.commondialog")&& !!! you cant directly create this object without a development licence, so for dynamically doing it on another machine, see below. -- petercrabtree
ms outlook express: none - it is not a com server!
ms sourcesafe:
ovss = createobject("sourcesafe.0")
ms visualbasic: 不知道,**也沒有登記出來。
ms windowsscriptinghost:
owsh = createobject("wscript.shell")
novell groupwise:
ogroupwise = createobject("novellgroupwaresession")
pcanywhere (host):
opcahost = createobject("winawsvr.behostdatamanager")
pcanywhere (remote):
opcarem = createobject("winawsvr.remotedatamanager")
quickbooks:
qbsessionmanager = createobject("qbfc2.qbsessionmanager")
tapifax:
otapifax = createobject(faxserver.faxserver)
windows media player:
owmp = createobject("wmplayer.ocx")
oplaylist = owmp.playlistcollection.getall()
owmp.currentplaylist = oplaylist.item(0)&& zero based array *!* music starts!
winfax:
owinfax = createobject("winfax.sdksend")
winprint :
owinprint = createobject("winprint.winprintx")
others:
scripting shell:
oshell = createobject("wscript.shell")
scripting network object:
onet = createobject("wscript.network")
scripting regular expression_r_r parser:
oreg = createobject("vbscript.regexp")
sql dmo sql server:
createobject("sqldmo.sqlserver")
參考:http://www.asp101.com/articles/carvin/sqldmobackup/default.asp
ASP之物件總結
如果你使用過大部分,那麼你的asp功力應該是非常高的了 ado物件 太常用了 connection command recordset record stream asp支援的物件太多了,你可以自己寫com元件,下面是我們經常使用的 server.createobject wscript.netwo...
ASP之TextStream物件(一)
textstream物件 textstream物件被用來訪問文字檔案的內容。下面的 建立了乙個文字檔案 c test.txt 並且寫入了一些文字 dim fs,f set fs server.createobject scripting.filesystemobject set f fs.creat...
ASP之TextStream物件(一)
textstream物件 textstream物件被用來訪問文字檔案的內容。下面的 建立了乙個文字檔案 c test.txt 並且寫入了一些文字 dim fs,f set fs server.createobject scripting.filesystemobject set f fs.creat...