Windows Scripting
  Home arrow Windows Scripting arrow Page 4 - Understanding Objects
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WINDOWS SCRIPTING

Understanding Objects
By: Nilpo
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 4
    2008-02-12

    Table of Contents:
  • Understanding Objects
  • What objects provide
  • How COM objects are built
  • More about objects

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Understanding Objects - More about objects


    (Page 4 of 4 )

    COM objects come in many styles depending upon their intended use.  They allow you to control nearly every aspect of the computing experience from controlling operating system behavior to automating individual programs.  These objects can add a lot of power to your script or program without you needing to write the code for yourself.

    In the case of scripting, they can provide functionality that you simply couldn’t write due to the limitations of the language and the environment.

    Some types of COM objects include OLE, OLE Automation, ActiveX, COM+ and DCOM. Each of these is built on a different technology to provide a different type of functionality.

    If you would like to explore the different COM objects available on your system, you should download a COM object viewer.  Many programming environments such as Visual Studio provide one for you.  Other third party solutions are also available.

    Most of the time, these will let you view the publicly available methods and properties that are exposed by these objects.  The documentation will typically be archaic, but a little trial and error can prove useful.  Just understand that many of the objects you find will not be scriptable, so most of them will not work in WSH.

    You can find a plethora of information concerning COM objects with a good Google search or by stopping by Microsoft’s MSDN site.

    Any time that you are forced to reuse several related methods or properties, you may wish to consider creating a COM object—especially if you intend to distribute them for use in other scripts or programs.

    Even if you don’t know or have the ability to program in any compiled languages, there is a way to create your own custom COM objects in WSH.  We’ll tackle that topic in a future article.  Until then, keep coding!


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    WINDOWS SCRIPTING ARTICLES

    - Generating Outlook Signatures Based on Activ...
    - VBScript: Converting and Formatting with Fun...
    - VBScript: Conversion and Format Functions
    - VBScript: Array Functions
    - VBScript: Strings, You Can`t Function withou...
    - VBScript: More String Functions
    - VBScript: Functioning with Strings
    - Working with the Windows Registry in C++
    - Understanding Objects
    - HTML Applications: Giving WSH a User Interfa...
    - Modifying Computer Objects with Active Direc...
    - Logon Script to Send Email Notifications
    - Securing Computers and Active Directory
    - Moving and Renaming Computers with Active Di...
    - Working with System Processes in WSH





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway