中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
作者:
标题: VBS 之CreateObject介绍(转) 上一主题 | 下一主题
rokersong
初级用户

包身工


积分 74
发帖 20
注册 2007-11-7
来自 广东 东莞
状态 离线
『楼 主』:  VBS 之CreateObject介绍(转)

ADO对象
Connection
Command
RecordSet
Record
Stream


Server.CreateObject("Scripting.FileSystemObject")
Server.CreateObject("Scripting.Dictionary") HashTable
Server.CreateXObject("Word.Application") //Server
ActiveXObject("Word.Application") //Client
Server.CreateObject("Excel.Application") //Server
ActiveXObject("Excel.Application") //Client
CreateObject("PowerPoint.Application")
Server.CreateObject("Microsoft.XMLHTTP")
Server.CreateObject("Microsoft.XMLDOM")
Server.CreateObject("MSXML2.XMLHTTP.4.0")
Server.CreateObject("WScript.Shell")
Server.CreateObject("wscript.network")
Server.CreateObject("MSWC.AdRotator")
CreateObject("Excel.Sheet")
MS FrontPage: oFP = CreateObject("FrontPage.Application")
MS Access: oAccess = CreateObject("Access.Application")
MS Graph: oGraph = CreateObject("MSGraph.Application")


CreateObject("PhotoShop.Application")

CreateObject("SQLDMO.SQLServer")
CreateObject("SQLDMO.Login")
CreateObject("SQLDMO.Backup")
CreateObject("SQLDMO.User")
Server.CreateObject("SQLDMO.BackupDevice")
Server.CreateObject("SQLDMO.Database")
Server.CreateObject("SQLDMO.Restore")

Server.CreateObject("MSMQ.MSMQQueueInfo")
CreateObject("MSMQ.MSMQQuery")
Server.CreateObject("ixsso.Query")
Server.CreateObject("ixsso.Util")

AccPac Advantage Corporate:
oAccPac=CreateObject("ACCPAC.xapiSession")

AccPac Report Master for Windows:
oImpApp=CreateObject("Impromptu.Application.30")

BarTender:
oBarTender = CreateObject("BarTender.Application")

CrystalReports:
oCRApplication = createobject ("CrystalRuntime.Application")
This doesn't invoke an IDE actually.

EUDORA:
oEud = CreateObject("Eudora.EuApplication.1")

FaxMaker:
oFax = CREATEOBJECT("fmfaxapi.application")

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:
oIE = CreateObject("InternetExplorer.Application")
IEAutomationExample

MS MapPoint:
oMapPoint = CreateObject("MapPoint.Application")

MSN Messenger:
oMessenger = CREATEOBJECT("MSNMessenger.MessengerApp")

MS NetMeeting:
oNetMeeting=CREATEOBJECT("netmeeting.app.1")

MS Outlook:
oOutlook = CreateObject("Outlook.Application")

MS Outlook Express: None - It is not a COM server!

MS PowerPoint:
oPP = CreateObject("PowerPoint.Application")

MS Project:
oProj = CreateObject("msProject.Application")

MS SourceSafe:
oVSS = CreateObject("SourceSafe.0")

MS Word:
oWord = CreateObject("Word.Application")

MS Visio:
oVisio = CreateObject("Visio.Application")


MS VisualCPlusPlus: (VC++)
oCpp = CreateObject("MSDev.Application")

MS VisualFoxpro:
oVFP = CreateObject("VisualFoxPro.Application")

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:
oRose = CreateObject("Rose.Application")

TAPIFax:
oTAPIFax = CreateObject('FaxServer.FaxServer')

WindowsShell:
oWSH = CreateObject("Shell.Application")

Windows Media Player:

oWMP = CREATEOBJECT("WMPlayer.OCX")
oPlayList = oWmp.PlaylistCollection.GetAll()
oWmp.currentPlaylist = oPlayList.Item(0) && Zero based array
*!* Music starts!

Windows Messenger:
oMessenger = CREATEOBJECT("Messenger.MessengerApp")

WinFax:
oWinFax = CreateObject("WinFax.SDKSend")

WinPrint :
oWinPrint = CreateObject("WinPrint.WinPrintX")

SQL-DMO object:
loSQL = CREATEOBJECT("SQLDMO.Application")

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")

   此帖被 +21 点积分         点击查看详情   
评分人:【 knoppix7 分数: +4  时间:2007-12-19 18:07
评分人:【 hackate 分数: +2  时间:2008-11-18 18:07
评分人:【 everest79 分数: +15  时间:2008-11-18 18:58




嘘§the genius is sleeping!!!
2007-12-19 12:03
查看资料  发送邮件  发短消息 网志  OICQ (42419713)  编辑帖子
wjjchrdw
初级用户




积分 26
发帖 12
注册 2005-10-1
状态 离线
『第 2 楼』:  

不错,挺多不知道的对象。

2007-12-19 17:07
查看资料  发送邮件  发短消息 网志   编辑帖子
HAT
版主





积分 9023
发帖 5017
注册 2007-5-31
状态 离线
『第 3 楼』:  

VBS初学者前来收藏



2007-12-19 20:59
查看资料  发短消息 网志   编辑帖子
zerocq
中级用户




积分 458
发帖 196
注册 2006-10-5
状态 离线
『第 4 楼』:  

原来有这么多,收藏

有中文介绍吗

2007-12-20 10:38
查看资料  发送邮件  发短消息 网志   编辑帖子
patrol
新手上路





积分 2
发帖 1
注册 2007-10-26
状态 离线
『第 5 楼』:  

请问server是做什么的?用在服务器端的?

2007-12-20 11:31
查看资料  发送邮件  发短消息 网志   编辑帖子
jia332
初级用户





积分 160
发帖 81
注册 2006-7-27
状态 离线
『第 6 楼』:  

ding 楼主辛苦了

   此帖被 -4 点积分        点击查看详情   
评分人:【 yishanju 分数: -4  时间:2008-11-18 10:49


2008-11-18 10:41
查看资料  发送邮件  发短消息 网志   编辑帖子
kioskboy
初级用户





积分 153
发帖 103
注册 2008-3-27
状态 离线
『第 7 楼』:  



2008-11-18 11:14
查看资料  发短消息 网志   编辑帖子

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: