MSMVPS.COM
The Ultimate Destination for Blogs by Current and Former Microsoft Most Valuable Professionals.

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.

Posted Oct 12 2003, 08:26 AM by alexk

Comments

TrackBack wrote re:It's the little things...
on 04-16-2005 22:34
^_~,pretty good!
TrackBack wrote re:It's the little things...
on 07-22-2005 20:32
It's the little things...ooeess
TrackBack wrote re:It's the little things...
on 08-03-2005 21:10
It's the little things...ooeess

Add a Comment

(required)  
(optional)
(required)  
Remember Me?


Copyright © is the original authors. Blog site is an independent site not sponsored by Microsoft. The Yoda blog server and the Brianna SQL server would like to thank www.ownwebnow.com and www.exchangedefender.com. They wouldn't be here and broadcasting without the generosity of Vlad Mazek and his companies.

Powered by Community Server (Commercial Edition), by Telligent Systems