Top "Wsh" questions

For questions relating to Windows Script Host (WSH), a language-independent scripting host for the Windows operating system.

Visual Studio 2017 debugging vbscript

I'd like to debug a vbscript with Visual Studio 2017 Community Edition and followed the steps mentioned here for VS2015: Video …

visual-studio debugging vbscript wsh
JScript: how to run external command and get output?

I'm running my JScript file using cscript.exe. In the script I need to call an external console command and …

windows cmd jscript wsh
creating quoted path for shortcut with arguments in powershell

I have the following powershell code calling WSHShell which will create a shortcut in the start menu for Win7/8 but …

powershell arguments quotes shortcuts wsh
Setting an environment variable in javascript

How can I set an environment variable in WSH jscript file that calls another program? Here's the reduced test case: …

javascript environment batch-file wsh
Using Javascript in HTA file to read/write from Windows registry

I'm currently attempting to write Javascript in order to read and write from the Windows registry in an HTA file. …

javascript windows registry hta wsh
how can I read a binary file with in javascript (Cscript.exe)?

I think I can't read a binary file with the Scripting.FileSystemObject class. Can I do it with ADODB.Stream? …

javascript wsh
Prompt dialog in WSH using JScript?

How to open a prompt dialog box in WSH usig JScript?? The only pop-up dialog I've found in the doc …

prompt jscript wsh windows-scripting
Detect when a web page is loaded without using sleep

I am creating a VB script on windows which opens a site in IE. What I want: Detect when the …

internet-explorer dom web-scraping vbscript wsh
passing arguments to javascript through cscript on the command line

I have a small command line JScript routine that I usually run from the command line using cscript in windows. …

wsh jscript
WScript.Shell and blocking execution?

I'm using WScript to automate some tasks, by using WScript.Shell to call external programs. However, right now it does …

shell vbscript wsh