My particular issue involves the WScript object with VBScript in a HTA.
<script language="VBScript">
Sub test()
Set objShell = CreateObject("WScript.Shell")
End Sub
</script>
This works perfectly on my work computer(Windows 7 Enterprise) but not on my computer at home(Windows 8 home) and not on my mothers computer(Windows 7 home).
BUT WAIT! THERE'S MORE!
At first I thought maybe the libraries were not there so but I checked another program I wrote that uses JavaScript and it has no problem. Tested the javascript in my app and it runs fine.
<script language="JavaScript">
function javaTest()
{
objShell = new ActiveXObject("WScript.Shell");
}
</script>
This is the error I keep getting.
ERROR: Provider cannot be found. It may not be properly installed.
I keep coming across solutions about 64 vs. 32 bit and I try them and it doesn't work. It also doesn't explain why it works in JavaScript and not VBScript. I'm frustrated, searched high and low, and I really want a McDouble right about now. So, any info would be greatly appreciated, even if you have to tell me "It's hopeless. Rewrite the whole thing in JavaScript"
You probably have different settings on launching ActiveX objects in browsers on this computers. To make it launch try to configure it in browsers:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With