More Alternative Languages for WSH - KixStart
(Page 3 of 5 )
KixStart is a free-format scripting language developed by Ruud van Velsen of Microsoft Netherlands. It is primarily used for writing network logon and logoff scripts, but has been highly extended to allow use for complete system administration scripting. There is also a very good GUI-driven development environment available for KixStart. Since WSH is so often used for logon and logoff scripts, I’ve decided to profile KixStart as my next WSH alternative.
ScriptLogic has put together a very comprehensive set of documentation and samples for KixStart.
With such thoroughly written documentation available, I’m going to keep my explanation of KixStart very brief, but I will give you a working example of the sample script that we’ve been using all along.
$fso = CreateObject("Scripting.FileSystemObject")
As you can see, the CreateObject method is used to connect to the FileSystemObject.
$folder = $fso.GetFolder("C:temp")
$files = $folder.Files
You then use common object dot syntax to access properties and methods.
For each $file in $folder
? $file.name
next
Finally, KixStart provides a For each structure for iterating through the elements of a collection.
Next: Ruby >>
More Windows Scripting Articles
More By Nilpo