Skip to main content

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).

wsh
-2 votes
0 answers
18 views

I am running a selenium script with java and at every execution i am getting an error [closed]

No error is seen in the console. Driver won't launch. How to get rid of the error? All the scripts and screens has the coding. Content in TestVB.vbs is available in the screenshot. This is a maven ...
Pavan patil's user avatar
0 votes
0 answers
45 views

Use VSCode to debug Windows Script Host scripts

Is there a way to configure VSCode to allow me to debug old JavaScript (JScript?) or VBScript routines that run in the Windows Script Host? I'd like to step through the code of each of these scripts ...
dougp's user avatar
  • 3,006
0 votes
1 answer
60 views

WSH/Javascript: how to access collection items [duplicate]

I am writing a JavaScript that shall be executed in Windows Scripting Host on the command line with cscript.exe. I need JSON parsing, so I decided on JavaScript instead of VBScript. Now I am trying to ...
Robert Pollai's user avatar
0 votes
0 answers
24 views

VBScript, how to put a dictionay inside another dictionary using .Item setter? [duplicate]

A.S. this is NOT dup: How can I use a dictionary inside a class in vbscript? i do NOT want to make new classes i also do not want to make ad hoc wrappers (would i - i would just use array(1) instead ...
Arioch 'The's user avatar
-1 votes
1 answer
29 views

How to list all environment variables in JScript [duplicate]

My prog.js looks like this: var WshShell = WSH.CreateObject("WScript.Shell"); var env = WshShell.Environment("PROCESS"); WSH.Echo(env.Length); // 46 WSH.Echo(env("OS")); ...
pts's user avatar
  • 85.6k
0 votes
0 answers
51 views

Unable to redirect output from VBA with cmd in hidden mode

Am trying to redirect output from cmd to a text file using Wscript.shell script. It works when cmd window is in active mode. But doesn't work with cmd windows style is 0 (hidden mode). Dim objShell : ...
Manoj's user avatar
  • 15
-2 votes
1 answer
714 views

How to access JSON object returned from createObject("htmlfile") in VBS file

I have the following json: { "columns":[ "b_summary", "end_fy", "id", "isin", "market", "name&...
alfadog67's user avatar
  • 831
0 votes
1 answer
597 views

SAP GUI Connection not working after update to .NET 6

I developed a .NET 4.6 Framework project (X64) with access to the running sap-instance. to connect to sap i used the exactly same way as the SAP-Script: Script-Version: Set SapGuiAuto = GetObject(&...
Markus Eckl's user avatar
-2 votes
1 answer
7k views

How to enable your Windows Script Host through Registry Editor?

The error I'm getting: Windows Script Host access is disabled on this machine. Contact your administrator for details. From many websites you can find that making a file named: ["Enabled"] ...
Bappy Sani's user avatar
1 vote
0 answers
84 views

How can I prompt the user to enter a value in WSH JavaScript?

I tried all the possible ways to enter a value from the user but none of those actually worked; I wrote these codes in my notepad and saved with .js extension; For example: 1. var input = WScript....
Flowinner 's user avatar
0 votes
1 answer
606 views

Getting "Windows Script Host" : Error code 800A03F6, Microsoft JScript compilation error, when executing module after using npm link

Windows Script Host prompts this error when trying to run your node cli Steps to reproduce issue: Create simple node 'Hello world' project use npm link to link the package. Try running the module ...
Suvel Mano's user avatar
0 votes
4 answers
2k views

Starting and minimizing Quake Terminal at startup

I'm trying to create a WSF that I can run using Task Scheduler at login. I want it to open the Terminal, switch to Quake mode, minimize that and then close the orignal Terminal window. I've got as far ...
James Richardson's user avatar
-1 votes
1 answer
3k views

Activate Windows License

When I use slmgr /skms <URL> | cmd command in PowerShell it shows me a pop up that I must press the ok button after that I run slmgr /ato | cmd and again shows me another pop up that I press the ...
Soheil Spalany's user avatar
0 votes
2 answers
264 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
2 votes
1 answer
492 views

Why does WScript.Shell SpecialFolders function return an empty string for Default and MyDocuments

To facilitate special folder processing, I wrote some code to return requested values based on an Enum with values for DeskTop, Default, MyDocuments, etc. The enum value is then converted to the ...
j2associates's user avatar
  • 1,145

15 30 50 per page
1
2 3 4 5
72