All Questions
37
questions
0
votes
2
answers
268
views
Windows Script Host cannot reference type library with version number in hexadecimal notation
I have .NET framework assembly which is exposed to COM. Recently, since the assembly minor version number reach 10, it stopped being usable from Windows Script Host (WSH).
[assembly: AssemblyVersion(&...
1
vote
1
answer
203
views
Where can I find the doc for the function GetObject in Microsoft Javascript?
I cannot find the doc for the function GetObject available in Microsoft Javascript.
I tried with no luck https://learn.microsoft.com/en-us/search/?terms=javascript%20getobject where I found https://...
0
votes
1
answer
1k
views
Using htmlfile COM object to access the .getOwnPropertyDescriptor() method of an object in WSH JScript
In the comments of this question, I was told that the .getOwnPropertyDescriptor() method
isn't supported in ES3 ..., so it probably isn't supported in JScript [either]
and that is indeed what I see ...
0
votes
1
answer
98
views
Accessing Windows Contacts (pre Win10) from JScript (or any ActiveScripting)
I want to use the COM object with the progID Windows.Contact.1 via ActiveScripting (JScript, VBScript, Python, etc).
This COM resides in C:\Program Files (x86)\Common Files\System\wab32.dll. It ...
0
votes
0
answers
454
views
Return value from vbscript to the calling php code
I am trying to get the bios serial number in PHP which will be stored as an exe through Exeoutput. Since I was not able to fetch the serial number in exeoutput, but was getting it in browser, I ...
0
votes
1
answer
770
views
Windows Script Host - Error '800A01B6' Object doesn't support this property or method
I am having an strange error with my C++ Windows API wrapper dll. I have already exposed six methods to COM with this dll. Every function works when I use them individually, but when I use COM exposed ...
0
votes
1
answer
984
views
In Need of simple and surely working demo of Registration-Free COM example with WSH (vbscript/javascript)
I have been trying to get Registration-Free COM technology to work with WSH scripting without success. I have read through so many replies to this issue and tried many thing without success. Now I ...
4
votes
1
answer
957
views
msbuild fails creating COM wrapper for "Windows Script Host Object Model"
The situation
I just reinstalled windows 10 and my dev tools, while keeping my data
I am using VS2015 update 3.
I have a solution with several projects.
The solution is under version control (git) ...
1
vote
1
answer
2k
views
wscript cscript with javascript to use COM with node.js
OS: windows 10 Node: v6.9.4 iTunes 12.5.5.5
I'm trying to write a node.js app that communicates with itunes, it will do a lot of things and i want to capture the response and show in a web page.
...
1
vote
1
answer
26
views
php script occasionally fails to run COM process
We have a PHP (5.5.15) script on WAMP with this:
$wsh_shell = new COM("WScript.Shell");
$retval = $wsh_shell->Run($batch_file_name, 0, false);
$batch_file_name is simply a .bat file that runs ...
0
votes
1
answer
1k
views
Is there an equivalent of WScript.ConnectObject in python?
I'm reimplementing a simple WSH script interacting with a COM object ("CANalyzer.Application" if you must know) in python using win32com. I'm blocked at a point where the script calls ConnectObject ...
-3
votes
1
answer
62
views
Can I have a COM interface in a service to be called from Windows Script Host?
My goal is to create a COM interface in my Windows local service, written with C++/MFC, whose methods could be called from a Windows Script Host JScript code running under a logged in interactive user ...
2
votes
1
answer
2k
views
Executing cscript using IActiveScript with C++
I'm trying to execute a script using cscript with IActiveScriptParse and ParseScriptText but for some reason I get an error: E_UNEXPECTED.
This article has helped me a lot. I'm using its ...
0
votes
2
answers
90
views
Can't access midiox COM interface from other folders
I have a script using the midiox COM interface, and it works fine when located in the midiox install path, in the "WSH" folder, but when I moved this script to a folder in My Documents (so I could add ...
0
votes
0
answers
591
views
Windows script file- Microsoft JScript runtime error: Type mismatch
I am trying to run a "pre-built" .wsf file which seems to work perfectly fine for my colleagues. But, I seem to be getting the error:
"D:\startup.wsf(221, 8) Microsoft JScript runtime error: Type ...