Windows Scripting
  Home arrow Windows Scripting arrow Page 2 - More Alternative Languages for WSH
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  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
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

More Alternative Languages for WSH
By: Nilpo
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2008-08-18

    Table of Contents:
  • More Alternative Languages for WSH
  • Object Rexx
  • KixStart
  • Ruby
  • Tips and Other Languages

  • 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


    More Alternative Languages for WSH - Object Rexx


    (Page 2 of 5 )

    Object Rexx is an object-oriented programming language that was originally developed by IBM for its OS/2 and OS/390 line of operating systems.  In late 2004, IBM released it as open source, giving rise to the free Open Object Rexx project.

    Object Rexx, in its original form from IBM, is not offered for free. There is a fee to download the development environment; however, the client runtime version can be downloaded and installed for free.

    This version of Open Object Rexx offers WSH support as well as compatibility for classic Rexx and other Open Object Rexx interpreters. Because Rexx is still quite widely used on IBM servers, it presents the next alternative for use in the Windows Script Host environment.

    The Open Object Rexx installer found in the link above will create an .rxs file association for use with WSH. You will not need to supply an engine on the command line.

    IBM’s Object Rexx development environment provides a very powerful debugger that is designed to minimize development time. Rexx’s efficiency and sophistication make it extremely popular among some system and network administrators.

    fso = .OLEObject~new("Scripting.FileSystemObject")

    The most common method of connecting to a COM object uses the OLEObject class. Notice the ~ syntax instead of the object dot syntax you’re probably more accustomed to seeing. Object Rexx also provides a GETOBJECT variation of this statement.

    files = fso~GetFolder("C:temp")~Files

    Working with Collections

    Once again you can see Object Rexx’s unique object syntax as we use the FileSystemObject’s Folder object to return a collection of File objects.

    do file over files

       say file~name

    end

    Finally, Object Rexx is able to manipulate collection objects directly so we can create a loop to iterate over each object and print its name.

    ::requires "orexxole.cls"

    In order to use ooRexx to access COM objects, you will need to include the above required line at the end of your script.

    More Windows Scripting Articles
    More By Nilpo


       · WSH in not limited to Microsoft's VBScript or JScript languages. In fact, support...
     

    WINDOWS SCRIPTING ARTICLES

    - More Windows Scripting Workarounds from Nilpo
    - Overloading Methods and More in VBScript
    - Improving MFC for Windows Vista
    - Regular Expressions in VBScript
    - Working with Dates in WMI
    - Completing Calendars with VBScript Date Func...
    - Building Calendars with VBScript Date Functi...
    - Working With Dates and Times in VBScript
    - Designing WCF DataContract Classes Using the...
    - Understanding Dates and Times in VBScript
    - Working With Arrays in VBScript
    - Compressed Folders in WSH
    - Using .NET Interops in VBScript
    - Nilpo`s Scripting Secrets, Vol I
    - Database operations using Silverlight 2.0 WC...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek