Archive for the ‘Windows Scripting’ Category

Error “There is no script engine for file extension”

Thursday, July 9th, 2009

You may receive an error “There is no script engine for file extension” while attempting to run .vbs files in Windows. This error can occur if no default scripting engine is set, the VBScript module is not correctly registered, or the .vbs file class settings are broken.

Restoring .vbs (VBScript Script File) File Associations

Thursday, July 9th, 2009

“I am running Windows XP. I need to execute VBS scripts to run functions in other programs. I had no problem until some security program disabled execution of VBS Scripts. Now all I get is code Notepad and the VBS Scripts don’t execute. How do I get Windows to execute VBS Scripts again?” - Peter […]

A Clipboard Control for WSH

Monday, March 23rd, 2009

Back in August of 2007 I wrote an entry about Scripting the Clipboard Contents in WSH in which I addressed a means of using Internet Explorer automation for setting and retrieving the contents of the Windows clipboard. One of my readers, Adrian Dorache, made mention of that post while unveiling a COM object he […]

Luhn Algorithm Validation in VBScript (ASP)

Wednesday, February 11th, 2009

The Luhn Algorithm is a simple checksum formula that is used to verify a variety of different numbers including most credit cards. Outside of verifying funds it provides the most accurate means of verifying credit card numbers by preventing typographical errors.

How to Test IIS SMTP Service

Tuesday, January 20th, 2009

When creating web pages and WSH scripts that send email it sometimes necessary to test the IIS SMTP service to ensure that it is properly handling and sending email. The technique I’ll be demonstrating today can be used locally or for testing the SMTP service on a remote server.

Alternate Sleep Function for ASP, HTA, WSC, etc.

Wednesday, December 31st, 2008

Many scripters have gotten all too used to using the WScript object’s Sleep method for pausing or delaying script execution. Since this object isn’t available in ASP, Windows Script Components, or HTML Applications, programmers are required to create viable alternatives.

Mute Sound Volume in WSH

Friday, November 7th, 2008

I’ve seen this question several times over the past few weeks so I decided to sit down and find a solution. There’s a plethora of reasons why you might want to mute or unmute sound volume from within a WSH script. Until now, there’s been no viable solution.

Renew Dynamic IP Addresses in WSH

Friday, October 3rd, 2008

“Is there any way to release and renew a dynamic IP address in WSH?” - Chris. F
Releasing and renewing dynamic IP addresses can be a very effective method of repairing a broken internet connection. Effectively, you are instructing your network adapter to request a new IP address from a DHCP server. While the […]

Forcing a Specific Scripting Engine

Wednesday, October 1st, 2008

I get a lot of questions asking for a simple way to force a script to run in either cscript.exe or wscript.exe–and there are several reasons why you might want to force the use of one engine over another. Cscript.exe is a good choice whenever you want to have a console output or mask […]

Masking Passwords in Windows Scripts

Sunday, July 27th, 2008

“Is there any way to mask the passwords that my users enter when running my Windows Scripts?” - Steve. P
Password masking is a method of hiding a user’s keyboard input so that another person cannot see what’s being typed on screen. This security measure helps to ensure that “shoulder surfers” can’t gain passwords by […]