All Questions
28
questions
2
votes
1
answer
6k
views
What is the difference between new ActiveXObject() and WScript.CreateObject()?
According to the Microsoft documentation, one can create instances of the COM objects using both the ActiveXObject() and the WScript.CreateObject() functions. It seems like the lines
var objXL = new ...
3
votes
1
answer
265
views
VBScript passing value by reference (VarPtr) to ActiveX function
I'm trying this:
Dim oApp
Dim iReturnedResult
Set oApp = CreateObject("Some.Application")
Set F_Ord = oApp.Documents.Open("Window 1", VarPtr(iReturnedResult))
The ActiveX ...
0
votes
0
answers
141
views
Wscript.exe task stacks and stresses CPU
SOLVED:
I realized, that the process 'wscript.exe' is not essential to keep the program running if you let it sleep, so I just kill it with a batch file within the script after the ActiveXObject has ...
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 ...
2
votes
1
answer
1k
views
How to get CMD output in HTA file within JavaScript
I run some CMD commands in my HTA file like
<script>
var WShell = new ActiveXObject('WScript.Shell');
WShell.run('cmd /c the_first_command');
WShell.run('cmd /c the_second_command');
</...
1
vote
1
answer
2k
views
How to run CMD commands one by one in HTA
I'm trying to run in my HTA file the following Win CMD commands one by one
<script>
var WShell = new ActiveXObject('WScript.Shell');
WShell.run('cmd /c "cd C:\\Users\\Username\\myFolder &&...
1
vote
1
answer
679
views
set file attribute filesystemobject javascript
I have created a file as part of a script on a network drive and i am trying to make it hidden so that if the script is run again it should be able to see the file and act on the information contained ...
-4
votes
1
answer
2k
views
Run-time error '429': ActiveX component can't create object in VBA/VBS/WSH
I know it has been asked so many times, but I've gone through dozens of pages, with no luck, since mine seems to be a OS/machine related problem rather then of a specific library.
Trying to manage ...
-1
votes
1
answer
128
views
IE username/password prompt not working
I'm trying to build a username/password prompt popup using Internet Explorer, but I'm doing something wrong. When I click on the Username field, the cursor almost always immediately jumps back to the ...
0
votes
1
answer
959
views
WScript.Shell vs cmd.exe - WorkingDir differences?
I've got an ActiveX script which starts an application.
var shell = new ActiveXObject("WScript.Shell");
shell.run('appli.exe');
The script works fine. Nevertheless, if I open cmd.exe and type in ...
-22
votes
1
answer
593
views
Share Excel.Application executable among multiple WSF processes?
I have a system that launches 50 or so VBS scripts via WSF, that need to stay there until another part of the system connects to them, then they act as servers for a bit until the peer disconnects, ...
0
votes
0
answers
1k
views
How to open sample.txt in notepad editor (external program) directed from a hyperlink in html?
There is an html file which has the paths of various .txt files. I wish to add hyperlink to the such that on clicking on those files, they get opened in the NOTEPAD EDITOR instead of the web browser.
...
4
votes
1
answer
310
views
what is this malicious script trying to accomplish?
Sorry if this is not the right place to ask this, please LMK if this question would be suited better somewhere else!
I got a particularly interesting piece of junk mail sent to my work email. It is ...
1
vote
2
answers
3k
views
"System cannot find the file specified" when trying to run PowerShell script
I am working on a menu that calls PowerShell scripts with wscript.shell and ActiveX. I am passing three variables to wshshell.Run:
scriptID, which is the name of a ps1 file,
vmName, which is the ...
0
votes
1
answer
184
views
Common Controls Replacement Project - How to get started?
I want to use the Common Controls Replacement Project in my Windows Scripting Host (WSH) HTML Application (HTA). In particular the Extended File Dialogs DLL.
How do I get started?
In my JavaScript I ...