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
1 vote
1 answer
216 views

looping with interval wscript

Please help me, I want to modify this file should be like this Run script Execute For Loop 5 times Waiting 5 minutes Execute For Loop 5 times again waiting 5 minutes Execute For Loop 5 times again If ...
Kevin123 Kocak's user avatar
0 votes
1 answer
10k views

How to write a script to automate Putty (PLINK) on Windows 10

I am doing a manual process that is done each day within Putty and wanted to automate it. There is no need for a person to do this because all of the keyboard inputs do not change each day. I'm trying ...
HonoraryTitle's user avatar
0 votes
1 answer
160 views

VBScript program incorrectly identifying its PID?

Every time I need to grant user access to a file share on our server, I get numerous occurrences of this popup because the process hits various files whose access rights I can't modify: This isn't a ...
Leslie's user avatar
  • 618
0 votes
0 answers
96 views

Script not running hidden

The following script will run if I run it minimized but not if I run it hidden. What am I doing wrong? #The intention of this script is to function as a keepalive. #The command used ...
PCMedicJAX's user avatar
3 votes
1 answer
259 views

Validate vbScript argument names

I am calling a vbScript from PowerShell, with arguments that are defined in a text string, and I want to validate that the arguments being used are correct. Say my valid arguments are ARG1, ARG2 & ...
Gordon's user avatar
  • 6,693
0 votes
0 answers
510 views

VBScript file starts wscript.exe but doesn't execute code

When I double-click my .vbs file in Windows, it will start the wscript.exe process, but doesn't appear to execute anything. Even a simple "Hello World" script doesn't do anything—not even an error ...
ogeeezu's user avatar
2 votes
1 answer
277 views

what is the win explorer location of chrome's "settings" data?

I have the following script to dump google's junk out of windows when using chrome (this is just partial script): For Each f In FSO.GetFolder("C:\Users\Owner\AppData\Local\Google\Chrome\User Data\...
Adam Evanovich'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
198 views

Windows shell script not able to make existing IE window visible?

I have been trying to create a really simple script to maintain visibility on an IE page but am currently unable to force the visibility or foreground position of an existing IE window. I am able to ...
Jesse's user avatar
  • 107
0 votes
1 answer
644 views

Windows script Host problem.. error code 800a000D..Type mismatch "Clnt"

Hi I'm windows 10 user with little to zero knowledge about programming. An error came up and windows fail to load... when I my pc opens a dialog box appears.. "Windows script Host" what is wrong with ...
Andreas Tsantes's user avatar
1 vote
0 answers
48 views

Listbox control template object is ignoring size properties

I am pretty much a beginner in WPF C# programming, so sorry for stupid question's. DESCRIPTION: In the ListBox I have defined the ControlTemplate. Inside of it is located also the "PieDiagram" ...
Pukaai's user avatar
  • 377
0 votes
0 answers
182 views

Internet explorer started from WScript.exe will not on appear on top

We have recently added a new feature on our application to be able to shell out to another application. One of the commands is WScript.exe In one part of the script, I wanted to be able to show a ...
Mark Bertenshaw's user avatar
0 votes
0 answers
35 views

redirecting "svn info" output to file in Windows Script Host created an empty file [duplicate]

I am new to creating Windows Script Host Scripts. The script shown below creates an empty Output.txt file. Does anyone see anything wrong with the script? Set WshShell = WScript.CreateObject("...
user1164199's user avatar
1 vote
1 answer
812 views

How to use variables in Wscript.Shell + cmd.exe?

I'm trying to substitute variables to path in a wsh.run command (it should launch a batch file), but I got an error in the dos console: "The file name, directory name or volume label syntax is ...
neutron's user avatar
  • 11
-1 votes
1 answer
2k views

How to enabled Windows Script Host [duplicate]

I need to execute some cmd command which will require Windows Script Host to be enabled. By default, Windows Script Host is enabled. But the problem is some of my clients, Windows Script Host is ...
Polar's user avatar
  • 3,517

15 30 50 per page
1
3 4
5
6 7
72