Monday, May 18, 2009

Stupid, Lazy Scripting

Are you talking to me?  A title like that usually refers to my approach to scripting.

Tired of typing or copying this everywhere?

Wscript.Echo "something stupid"

Try this...

Sub echo(s)
Wscript.Echo s
End Sub

Now you can cut your code down to just this...

echo "something less stupid!"

If you really get even lazy-er...

Sub z(s)
Wscript.Echo s
End Sub

z "something brief, but still stupid"
Post a Comment