Skip to main content

All Questions

Tagged with
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(&...
Martin Prikryl's user avatar
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://...
Alessandro Jacopson's user avatar
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 ...
Foad S. Farimani's user avatar
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 ...
amix's user avatar
  • 133
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 ...
ITSagar's user avatar
  • 693
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 ...
GTAVLover's user avatar
  • 1,427
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 ...
M.Y.'s user avatar
  • 589
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) ...
ChrisM's user avatar
  • 1,168
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. ...
Mateus Silva's user avatar
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 ...
raphael75's user avatar
  • 3,158
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 ...
Dmitry Grigoryev's user avatar
-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 ...
c00000fd's user avatar
  • 21.8k
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 ...
Ella Sharakanski's user avatar
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 ...
Jpaji Rajnish's user avatar
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 ...
TelecomCoder's user avatar

15 30 50 per page