Top "Wsh" questions

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

What is the difference between CreateObject and Wscript.CreateObject?

Does anyone know the reasoning behind having the option using: Wscript.CreateObject("some.object") and CreateObject("some.object") within VBScript? …

windows vbscript wsh
How to find the window Title of Active(foreground) window using Window Script Host

I want to find the title of the window which is currently active(having focus) using Window Script Host(WSH) …

vbscript wsh
Run a bat file from javascript

I'm trying to run a bat file using javascript. I've tried using powershell but it didn't seem to work properly. …

javascript batch-file jscript wsh
Force a VBS to run using cscript instead of wscript

What is the stackoverflow approved (and hence correct) method to force a VBS to run using cscript instead of wscript …

vbscript arguments wsh
How do I get a list of the active IP-addresses, MAC-addresses and NetBIOS names on the LAN?

How do I get a list of the active IP-addresses, MAC-addresses and NetBIOS names on the LAN? I'd like to …

windows networking powershell sysadmin wsh
How to change cscript.exe to wscript.exe execution for all VBScript files?

After installing the new server, I am facing an issue. I have lot of .vbs files, all need to run …

vbscript wsh
Capturing output from WshShell.Exec using Windows Script Host

I wrote the following two functions, and call the second ("callAndWait") from JavaScript running inside Windows Script Host. My overall …

stdout javascript wsh
How do I use WScript.Shell SendKeys to send Number Pad key strokes?

I am trying to use WScript.Shell SendKeys method to emulate sending a key press from the Number Pad. I …

vbscript automated-tests qtp wsh
Get the Windows Download folder's path

I have some Excel VBA code that requires knowing the Downloads folder path. How could I do it? Since you …

windows vba excel windows-shell wsh
WScript in VB.NET?

This is a snipet of code from my program: WSHShell = WScript.CreateObject("WScript.Shell") But for some reason, "WScript" is …

vb.net vbscript wsh