|
feifei0000
初级用户
积分 42
发帖 11
注册 2006-1-7
状态 离线
|
『楼 主』:
我现在很想学VBS,谁能帮我啊?
我想找一些关于 vbs对象和控件 的资料,可是找不到啊,找到的总是 一些fso ,其他的什么网络对象 或控件的都找不到,有谁能帮我找的?谢了啊!
|
|
2006-8-6 20:03 |
|
|
electronixtar
铂金会员
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第
2 楼』:
帮助文件能帮你
Google能帮你
搜索能帮你
|
C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2006-8-7 12:20 |
|
|
luoxinxin1988
初级用户
积分 190
发帖 48
注册 2006-6-5
状态 离线
|
『第
3 楼』:
electronixtar前辈说得没错
|
|
2006-8-12 21:35 |
|
|
mobo
初级用户
积分 73
发帖 30
注册 2006-9-18
状态 离线
|
『第
4 楼』:
这些类库的用法都去找一找,有好东西再传上来让我们共享吧!
常用的类库:
InternetExplorer.Application
VBScript.RegExp
VBScript.Encode
ASP.HostEncode
VBSFile.HostEncode
JSFile.HostEncode
Scripting.Dictionary
Scriptlet.Factory
Shell.Explorer
Shell.FolderView
Shell.UIHelper
WScript.Network
GIFFilter.CoGIFFilter
JPEGFilter.CoJPEGFilter
Internet.Label
COMCTL.ListViewCtrl
COMCTL.TreeCtrl
COMCTL.TabStrip
COMCTL.Toolbar
COMCTL.SBarCtrl
COMCTL.Slider
COMCTL.ProgCtrl
MSComDlg.CommonDialog
Marquee.MarqueeCtl
Imaging.ScanCtrl.1
Imaging.EditCtrl.1
Imaging.AnnotationCtrl.1
Imaging.ThumbnailCtrl.1
ASControls.InstallEngineCtl
Microsoft.ActiveXPlugin
ASControls.ActiveSetup.TextCtl
Word.Application
Word.Document
Word.Picture
Microsoft.Jet.OLEDB.4.0
ASP中常用:
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") //关于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")
具体的例子请看下面的连接 http://www.asp101.com/articles/carvin/sqldmobackup/default.asp
//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:
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 VisualBasic: 不知道,网站也没有登记出来。
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")
另外,我还有九千多VBS代码,我对这情有独钟!!!
------------墨伯[MOBO]
|
|
2006-9-24 10:13 |
|
|
lxmxn
版主
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
|
2006-9-24 13:22 |
|
|
electronixtar
铂金会员
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第
6 楼』:
9千多哇~~~口水~~打包放出来~~~我帮你顶!
|
C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2006-9-25 03:36 |
|
|
piziliu2004
中级用户
过度热情
积分 321
发帖 139
注册 2006-3-21
状态 离线
|
『第
7 楼』:
顶.........................
看來mobo 是vbs高手啊.!. QQ号多少.!加一个.!
我QQ:16750931 目前也在学vbs
|
知识在于不断积累 |
|
2006-9-26 02:35 |
|
|
mobo
初级用户
积分 73
发帖 30
注册 2006-9-18
状态 离线
|
『第
8 楼』:
继续向各位学习,再学习
MOBO现在不玩QQ了,正在整理VBS和WMI,以便下次再开发软件时用,请谅解.
|
|
2006-9-26 09:53 |
|
|
mobo
初级用户
积分 73
发帖 30
注册 2006-9-18
状态 离线
|
『第
9 楼』:
脚本虽好,也得珍爱哟
欢乐时光病毒和桂林老兵木马等代码中都用上了十多种类库,都是很牛的,我从中学到不少哇!不过我们都得遵纪守法不能做坑人的事呀!
|
|
2006-9-26 09:58 |
|
|
lxmxn
版主
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第
10 楼』:
我也在学vbs啊,不知mobo兄能否献上一些好的关于学习VBS的资料啊?
可以当帖子发出来,也可以上传到坛子上面
|
|
2006-10-2 09:05 |
|