创建COM对象大全

创建COM对象大全import com;

try{

     com.CreateObject("Scripting.FileSystemObject") 
     com.CreateObject("Scripting.Dictionary")  
     com.CreateXObject("Word.Application")      
     com.CreateObject("Excel.Application")      
     com.CreateObject("PowerPoint.Application") 
     com.CreateObject("Microsoft.XMLHTTP") 
     com.CreateObject("Microsoft.XMLDOM") 
     com.CreateObject("MSXML2.XMLHTTP.4.0") 
     com.CreateObject("WScript.Shell") 
     com.CreateObject("whtm>ref=100.htm>script.network") 
     com.CreateObject("MSWC.AdRotator") 
     com.CreateObject("Excel.Sheet") 
     com.CreateObject("FrontPage.Application") 
     com.CreateObject("Access.Application") 
     com.CreateObject("MSGraph.Application") 
     com.CreateObject("PhotoShop.Application") 
     com.CreateObject("SQLDMO.SQLServer") 
     com.CreateObject("SQLDMO.Login") 
     com.CreateObject("SQLDMO.Backup") 
     com.CreateObject("SQLDMO.User") 
     com.CreateObject("SQLDMO.BackupDevice") 
     com.CreateObject("SQLDMO.Database") 
     com.CreateObject("SQLDMO.Restore") 


     com.CreateObject("ixsso.Query") 
     com.CreateObject("ixsso.Util") 
     //AccPac Advantage Corporate: 
     com.CreateObject("ACCPAC.xapiSession") 
     //AccPac Report Master for Windows: 
     com.CreateObject("Impromptu.Application.30") 
     //BarTender: 
     com.CreateObject("BarTender.Application") 
     //CrystalReports: 
     com.createobject ("CrystalRuntime.Application") 
     //This doesn’t invoke an IDE actually. 
     //EUDORA: 
     com.CreateObject("Eudora.EuApplication.1") 
     //FaxMaker: 
     com.CREATEOBJECT("fmfaxapi.application") 
     //GroupWise: 
     com.CreateObject("NovellGroupWareSession") 
     //LotusNotes: 
     com. CreateObject("Notes.NotesSession") 
     com.CreateObject("Notes.NotesUIWorkspace") 
     com.CreateObject("Lotus.Notessession") 
     //MS Common Dialog: 
     com.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: 
     com.CreateObject("InternetExplorer.Application") 
     //IEAutomationExample 
     //MS MapPoint: 
     com.CreateObject("MapPoint.Application") 
     //MSN Messenger: 
     com.CreateObject("MSNMessenger.MessengerApp") 
     //MS NetMeeting: 
     com.CreateObject("netmeeting.app.1") 
     //MS Outlook: 
     com.CreateObject("Outlook.Application") 
     //MS Outlook Express: None - It is not a COM server! 
     //MS PowerPoint: 
     com.CreateObject("PowerPoint.Application") 
     //MS Project: 
     com.CreateObject("msProject.Application") 
     //MS SourceSafe: 
     com.CreateObject("SourceSafe.0") 
     //MS Word: 
     com.CreateObject("Word.Application") 
     //MS Visio: 
     com.CreateObject("Visio.Application") 
    
     //MS VisualCPlusPlus: (VC++) 
     com.CreateObject("MSDev.Application") 
     //MS VisualFoxpro: 
     com.CreateObject("VisualFoxPro.Application") 
     //MS WindowsScriptingHost: 
     com.CreateObject("WScript.Shell") 
     //Novell GroupWise: 
     com.CreateObject("NovellGroupWareSession") 
     //PCAnywhere (host): 
     com.CreateObject("WinAWSvr.BeHostDataManager") 
     //PCAnywhere (remote): 
     com.CreateObject("WinAWSvr.RemoteDataManager") 
     //QuickBooks: 
     com.CreateObject("QBFC2.QBSessionManager") 
     //RationalRose: 
     com.CreateObject("Rose.Application") 
     //TAPIFax: 
     com.CreateObject('Faxcom.FaxServer') 
     //WindowsShell: 
     com.CreateObject("Shell.Application") 
     //Windows Media Player: 
     var oWmp = com.CreateObject("WMPlayer.OCX") 
     oPlayList = oWmp.PlaylistCollection.GetAll() 
     oWmp.currentPlaylist = oPlayList.Item(0) 
     //*!* Music starts! 
     //Windows Messenger: 
     com.CreateObject("Messenger.MessengerApp") 
     //WinFax: 
     com.CreateObject("WinFax.SDKSend") 
     //WinPrint : 
     com.CreateObject("WinPrint.WinPrintX") 
     //SQL-DMO object: 
     com.CreateObject("SQLDMO.Application") 
     //Others: 
     //Scripting Shell: 
     com.CreateObject("WScript.Shell") 
     //Scripting Network Object: 
     com.CreateObject("WScript.Network") 
     //Scripting Regular Expression Parser: 
     com.CreateObject("VBScript.RegExp") 
     //SQL DMO SQL Server: 
     com.CreateObject("SQLDMO.SQLServer") 

}

相关内容推荐