Comparing Apples to Oranges

I’ve spent some time lately exploring searching and replacing techniques in a variety of scripting languages. I hope to share some of these experiences later. Right now I wanted to briefly share a tip when searching for text using VBScript. This is a common task and one that causes many novice scripters more than a little grief.

Read More

VBScript and PowerShell Webcasts

Don Jones will be hosting a new series of monthly TechNet Webcasts, beginning December 19th. These Webcasts are free, although they do require advance registration in order to attend. Learn more about the first one, an “Overview of Windows PowerShell,” and register now.

Don’t forget that Don’s past VBScript-oriented Webcasts are still available for free as on-demand downloads …

Read More

Make your scripts sing

In an earlier post, I showed you how to make your scripts talk back. Well, you can also use the SAPI object to “speak” a wav file. Imagine having a script play a sound when it finishes a long query or process. This is pretty easy to do.

Read More

Save Me!

A few days ago I showed how to call an Open File dialog box. I promised to show you how to let a user specify a filename and path by browsing using the File dialog box. This is much better than using an input box, especially when you want to save the file to a specific folder where you don’t know the full path off the top of your head.

Read More

Open Sesame

As you develop more and more scripts, you’re bound to find yourself working with files. Often, the easiest thing to do is to hard code a filename that we want to open and use. Or we may provide a run time parameter for a file name. Wouldn’t it be nice to be give the user an option to browse for the file like other Windows apps? If your script is running on Windows XP or Windows 2003, you can use the SAFRCFileDlg object.

Read More

Hearing Voices

I’ve been toying around with text to speech in scripts both in VBScript and PowerShell. I thought I’d share some thoughts and techniques for working with these objects. I’m still trying to find a truly practical need for this in an administrative script, but this is interesting technology to kick around.

Read More

VBScript’s Future

So here you have it from the horse’s mouth on the future of VBScript: This week at Microsoft IT Forum in Barcelona, Jeffery Snover (architect of Windows PowerShell) said that VBScript is “feature complete,” meaning it wouldn’t be developed any further, but that it also wasn’t considered “outdated” and would be included in future versions of Windows for the “forseeable …

Read More

Script Development Best Practice

I’ve seen a number of posts on a variety of forums from new andbeginning scripters. Typically the question is how to achieve a certaintask, but it got me thinking about this from another angle: what is thebest practice for starting a new script?  My answer: Comments.

When you are starting a new script project, open up your …

Read More

New Essentials on ScriptingAnswers.com – Now Including Windows PowerShell!

We’ve updated the “Essentials” page on ScriptingAnswers.com (http://www.scriptinganswers.com/essentials.asp) to include Essentials for both VBScript and Windows PowerShell.

“Essentials” are short scripts that demonstrate how to do particular things in a script, such as enumerating through objects, bringing up a debug window, using alternate credentials, and so forth. These tasks are commonly asked about in the ScriptingAnswers.com forums, so …

Read More

New Product Activation in PrimalScript 4.1

As you may know, PrimalScript 4.0 used an online-unlocktechnique, meaning that PrimalScript needed to communicate with a SAPIENTechnologies server in order to register itself and unlock the trial. Thissystem was put into place to help discourage software piracy, which costsSAPIEN Technologies a great deal of income each year. However, the systemproved to cause more problems …

Read More

Search

Enter any query and press enter
Advanced search operators:
+ ⟶ Term must appear
- ⟶ Term must not appear
"" ⟶ Exact string must appear
How do I use these?

Join our mailing list

Enter your email address to subscribe to our mailing lists for Monthly Blog Digests, Product Announcements and more (you can choose which you receive once you sign-up!)

Tags

Categories

Archives

Dashboard