如果你使用過大部分,那麼你的asp功力應該是非常高的了
ado物件(太常用了):
connection
command
recordset
record
stream
asp支援的物件太多了,你可以自己寫com元件,下面是我們經常使用的:
server.createobject("wscript.network") //網路位址的
server.createobject("mswc.adrotator")
createobject("excel.sheet")
下面是我們應該知道的:
//關於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")
accpac report master for windows:
bartender:
crystalreports:
this doesn"t invoke an ide actually.
eudora:
faxmaker:
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 can"t directly create this object without a development licence, so for dynamically doing it on another machine, see below. -- petercrabtree
ms internet explorer:
ieautomationexample
msn messenger:
ms netmeeting:
ms outlook:
ms outlook express: none - it is not a com server!
ms powerpoint:
ms project:
ms sourcesafe:
ovss = createobject("sourcesafe.0")
ms word:
ms visio:
ms visualbasic: 不知道,**也沒有登記出來。
ms visualcplusplus: (vc++)
ms visualfoxpro:
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")
rationalrose:
tapifax:
otapifax = createobject("faxserver.faxserver")
windowsshell:
windows media player:
owmp = createobject("wmplayer.ocx")
oplaylist = owmp.playlistcollection.getall()
owmp.currentplaylist = oplaylist.item(0) && zero based array
*!* music starts!
windows messenger:
winfax:
owinfax = createobject("winfax.sdksend")
winprint :
owinprint = createobject("winprint.winprintx")
sql-dmo object:
others:
scripting shell:
oshell = createobject("wscript.shell")
scripting network object:
onet = createobject("wscript.network")
scripting regular expression parser:
oreg = createobject("vbscript.regexp")
sql dmo sql server:
createobject("sqldmo.sqlserver")
ASP之物件總結
ado物件 connection command recordset record stream asp支援的物件很多,可以自己編寫com元件,下面是我們經常使用的 關於sql server的 createobject sqldmo.sqlserver createobject sqldmo.log...
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...