- Windows 95, 98, 98SE, Millennium
- Windows NT 4.0, 2000, XP, 2003, Vista
When you run a .vbs file with a call to CreateObject(“WScript.Shell”) the script/application terminates with the follow error message:
The script then exits
Your Windows Scripting Host has a mis-registered control. If you have just Installed Microsoft Internet Explorer <anything>.<anything> chances are the install went wrong. Check the install log in %SystemRoot% and check for failures.
I would recommend reinstalling IE properly to be safe, but chances are the problem will still be there afterward (it was with this particular muse and MSIE 7.0).
The fix is very simple however (assuming that your error is down to Windows Scripting Host and not bad programming; you are on your own on that one).
From cmd, or from a .bat run:
I recommend that you start with wshom.ocx and test . No reboot is required for shell initiated .vbs files. If the problem is with IIS, you should restart the IIS Administrative and WWW services.
Be sure that you are using WScipt 5.6 (Unless running Vista or XP with IE7). You can download the latest release here: