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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
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

More Alternative Languages for WSH
By: Nilpo
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    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

    - 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...
    - Modifying XML Files in WSH
    - Reading XML Files in WSH
    - Visual Basic 2005 XML Programming Using XML ...
    - Creating an XML Document in WSH
    - Introducing Two-Way Data Binding using Silve...
    - Silverlight 2.0 Application Development with...
    - Burning Multisession CDs with IMAPI2 in WSH
    - Creating a Silverlight 2.0 Application that ...
    - Burning CDs with the IMAPI2 Control
    - Burning CDs in Windows XP with WSH

     
    Best Practices for Windows Vista Migration Presentation
    Dell and Microsoft recently held a series of face-to-face seminars entitled, &qu....

     
    Creating a Culture for Code Reuse
    If you oversee development teams you know that like it or not proprietary and ex....

     
    Keys to Web Application Acceleration: Advances in Delivery Systems
    Accelerate Web apps by up to 5x. Ensure significantly faster access to the Web a....

     
    Optimizing Application Monitoring
    Tired of finding out from your customers that you're offline? This white paper e....

     
    Solaris to Solaris Migration -- Migrating applications from Sun SPARC to Dell PowerEdge R900
    This comprehensive Migration Guide reviews the approach that Principled Technolo....

     




    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT