Windows Scripting
  Home arrow Windows Scripting arrow Page 4 - 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 - Ruby


    (Page 4 of 5 )

    Ruby, created in Japan, is quickly emerging as a leader in the web development community. Its scriptable counterpart is ActiveScriptRuby, sometimes called RubyScript. Its functionality is similar to Java and its syntax is as simple as VBScript. These two qualities have helped to increase Ruby's popularity. While it has the power to operate as a system scripting solution, due to its web-dev nature, I highly recommend it for use in HTML applications.

    Ruby boasts simplicity and ease-of-use. It uses a very natural syntax that makes it very easy to learn. Ruby is also very well documented. Keep in mind that most of this documentation was originally written in Japanese and painstakingly translated to English. Better written English documentation is emerging as Ruby is quickly gaining popularity in Europe and the Americas.

    require 'win32ole'

    Begin your Ruby script with this line if you want to connect to standard COM objects.

    fso = WIN32OLE.new('Scripting.FileSystemObject')

    A connection can then be made using the Win32OLE class.

    folder = fso.GetFolder('C:temp')

     

    for file in folder do

        puts file.name

    end

    Ruby then uses a common object dot syntax to access an object’s properties and methods along with a simple for structure for iterating through the elements of a collection.

    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 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek