Don and I have finally gotten zip files with all the updated session material from the Techmentor Orlando 2007 conference. There is a zip file for each of us at …
Category: VBScript
What trips you up in VBScript?
Okay, if you’re reading this I’ll assume (for the moment) that you have at least a passing interest in VBScript. When you were (or while you are) learning VBScript – what topics gave (or give) you the most difficulty? What is or was the most difficult thing to grasp, or the hardest thing for you […]
A VBScript GUI
A while back, I’d posted a “SuperInputBox” for VBScript. Written as a COM component in VB6, this “input box” allows a VBScript to display a much more robust dialog box for collecting input. I wanted to make this available on an “as-is” basis for anyone who’d like to use it: Get the DLL from www.scriptinganswers.com/download/dll.zip […]
The New VBScript Reference
Lest you think we’re completely caught up in the Windows PowerShell craze, I offer you the latest project from SAPIEN Press: WSH and VBScript Core: TFM. A sample chapter is now available for download, showing how this is shaping up to be the most detailed reference material possible for working with VBScript and the Windows […]
New Class Locations!
Our “Script Across North America” tour has been enhanced with new locations in Chicago and Toronto. Full details are available at www.ScriptingTraining.com – registration for all locations is now open, so don’t delay – sign up today!
ADSI Scripting: TFM – off to the presses!
Our newest SAPIEN Press title, ADSI Scripting: TFM (by Cade Fassett), is off to the presses! That also means the book’s sample scripts are available for download, and a completed sample chapter (well, a chapter and a half, really) is available for download in PDF format, all at www.sapienpress.com/adsi.asp. The book is also available for […]
Automated Telnet
There was a recent post in the ScriptingAnswers.com forums about a Telnet COM object. I’m assuming the poster was looking for a way to automate a telnet session. Well there isnt’ a free and easy way. What you need is some way to pass a string of commands to the Telnet session. Well, when all else fails, the SendKeys method is a last resort.
VBScript and PowerShell Training – Registration Open
Registration is now open for classes in Atlanta, Dallas, Philadelphia, and Omaha. These cities will all host a two-day class on Windows PowerShell this year; you’ll find complete details and registration forms at www.ScriptingTraining.com/classes.asp. We do offer early-bird discounts and space is limited, so if you’re planning to attend, we encourage you to register sooner rather than later….
Philosophy Of Automation
Last month Jeffrey Snover had an excellent post on his Philosophy of Automation. I’d like to add my 2 cents to the discussion. This is a concept I’ve espoused my entire career. I’m always looking for ways to get more done faster with less. I expect many of you are interested in this as well or you wouldn’t be here.
Execute! III
Okay, last time, I left you with two functions which were nearly identical. This one:
Const pi = 3.1416
r = 0
WScript.Echo Main()
Function Main()
r = 2.5
Dim result
Dim str
str = “result=pi*(r*r)”
Execute str
Main = result
End Function
This function returns a nonzero value. Although r has a value of zero in the global scope, function Main() …