Questions tagged [wsh]
For questions relating to Windows Script Host (WSH), a language-independent scripting host for the Windows operating system. It allows scripts to be run from both the graphical Windows desktop (via WScript.exe) and the command prompt (via CScript.exe).
1,075
questions
0
votes
1
answer
756
views
Any attempt to execute vbs script generates a File Not Found Error
The specific error is:
Script: \\dc\netlogon\folder\file.vbs
Line: 0
Char: 1
Error: File not found
Code: 800A0035
Source: Microsoft VBScript runtime error
The file is at the location specified. ...
0
votes
0
answers
17
views
Send Keystroke to Adobe Reader DC to Update
Is there a way to send keystroke to adobe reader DC using script to initiate Update ,
Please help.
Thank you
0
votes
1
answer
845
views
Running python script from wscript fails to activate conda
For some reasons I would like to execute a python script from a vbs-script. It seems that conda isn't activated when I run the script. The pythonfile ImportPandas.py has the following code:
print('\n--...
0
votes
1
answer
385
views
overwrite folders in visual basic script?
I'm working on a way to overwrite a folder if it already exists, with confirmation. Here is my code(along with the part I'm stuck on):
Set fso = CreateObject("Scripting.FileSystemObject")
...
-1
votes
1
answer
3k
views
How beep (or play a system sound) from VBScript, which runs in a window? [duplicate]
How can I make my doalert.vbs script to beep (or at least to play a system sound)?
doalert.vbs is a VBScript
it runs in a window
it is launched by wscript.exe (not by cscript.exe)
0
votes
0
answers
729
views
Do .Exec or .ShellExecute wait for the specified process to terminate before the script continues?
According to SS64, for .Run you can specify bWaitOnReturn to choose whether or not to wait for the process to terminate before your script continues.
SS64's details about .Exec do not mention whether ...
0
votes
1
answer
812
views
VBScript fails when sending left mouse click
I am trying to develop script to open thinkorswim app (stock/option trading software) so that I can use that script inside my W10Pro pc Task Scheduler app to automatically open this app at specified ...
-1
votes
2
answers
105
views
Wscript and Tor Browser
so I'm new to all of this and I need to know if wscripts would work with tor browser, and what would that code look like. i need the bot to go to a website and click a button and then go to another ...
1
vote
0
answers
256
views
Can python 3 be used as scripting engine for an "ActiveX Scripting Host"?
I have to convert an existing python 2.7.15 script to python 3.7.4.
The existing script is launched by an programm which is an 'ActiveX Scripting Host' and works fine.
The problem I encountered is ...
0
votes
1
answer
384
views
Automation of Java keytool command using VBScript to extract certificate metadata not working
Using the Java keytool utility, I'm attempting to automate the reading of metadata attached to certificates in a JKS file from two possible directories and output the metadata to a flat file (all from ...
0
votes
0
answers
34
views
why [CONSOLE]::NumberLock is not working in remote destop system [duplicate]
when i run below command it works fine in my local system but don't know why it not working in remote aws server
@start /wait powershell.exe -nologo -WindowStyle Hidden -command "IF ([console]::...
2
votes
2
answers
329
views
Getting a response from a wsh script
In my HTA app there are some actions which are executing some heavily time-consuming tasks on a server. For example an action uses an old ActiveX component to read some fileproperties (like Subject ...
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 ...
2
votes
1
answer
1k
views
WScript.Shell crashes Excel
I am using WshShell to run a batch file from VBA within Excel.
The batch file is VERY simple, one line that runs a number crunching
program. I can run the batch file directly without problems.
I am ...
0
votes
0
answers
193
views
Getting Invalid root in registry key when running CScript.exe from a windows Cmd file
I am running a test.cmd file from a C# exe by creating a System.Diagnostics.Process.
The test.cmd is launching a JScript file using the Windows Scripting Host Command Line as below
C:\myfolder>...