It's the little things...

[Listening to: Hey Hey What Can I Do / Hootie - Encomium - A Tribute to Led Zeppelin (03:25)]
... that can make the biggest difference.
Ever since I started working with console-based WSH scripts, I found the tendency to break input pipes if not launching explicitly with cscript to be a source of frustration and actual damage.
A few weeks ago, I started using "shadow scripts": I would generate a CMD or BAT file with the same base name as a WSF, in the same folder, and give it the one line:
    @cscript "%~dpn0.wsf" %*

Although it was a little annoying to do at first, I found that I was suddenly writing more and more console scripts due to how simple use was. It makes calling and piping ten times easier.

Comments

TrackBack said:

^_~,pretty good!
# April 16, 2005 10:34 PM

TrackBack said:

It's the little things...ooeess
# July 22, 2005 8:32 PM

TrackBack said:

It's the little things...ooeess
# August 3, 2005 9:10 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)