Friday, February 20, 2009

VBScript vs the Rest of the World

I tried using VBScript since I was tired of the lack of control structures, functions, etc, in the CMD language. I spent a few hours rewriting (or trying to rewrite) a couple of CMD scripts.

I ended up going back to CMD. My reasons (in no particular order) are:
  • VBScript is different enough from Visual Basic that it really qualifies as a different language. Very few of my VB habits worked for VBScript.
  • I hit a security issue when I was trying to copy files. I had written a CMD script, a Cygwin shell script and a Python script that all worked, but VBScript refused to do the copy. It wasn't worth the time to figure out which security setting to tweak.
Also, I don't really want to learn yet another language that locks me into Windows. So I get to live with CMD (whose behavior I do understand) until I can convince myself that my team can deal with Python.