Top "Wsh" questions

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

How can I create a javascript library in a separate file and "include" it in another?

First, a caveat. The main script is not run in a webpage. I will be running the .js file in …

javascript include wsh windows-scripting
MSGBOX position in WSH/VBS

here is my next question and i hope some one can help me :-) Is it possible to position a …

position wsh vbscript msgbox
JScript Enumerator and list of properties

Consider the following WSH snippet: var query = GetObject("winmgmts:").ExecQuery("SELECT Name FROM Win32_Printer", "WQL", 0); var e = new Enumerator(…

jscript wsh
Use FindWindow to hide a WScriptExec window in VBA

Yes. Complicated. Premise: I am running an Access database that needs info retrieved via FTP. It runs ftp.exe using …

vba wsh findwindow
Advice for Windows XP Scripting, WSH versus PowerShell

After much experience scripting in the Unix/Linux open-source world, using languages such as Bourne Shell, Perl, Python, and Ruby, …

powershell scripting vbscript windows-xp wsh
how to read (Default) value in Registry Key in VBScript/JScript

I can read the value of the key name "UpdateCheck" under HKEY_LOCAL_MACHINE\SOFTWARE\CCleaner\ with Shell.RegRead("HKEY_…

wsh jscript
How to reference a JScript file from another one?

I am writing some server-side scripts using JScript and WSH. The scripts are getting quite long, and some common functions …

include javascript wsh
What is the ProgId or CLSID for IE9's Javascript engine (code-named "Chakra")

Using .NET, I can write an app that hosts a scripting engine that complies with Microsoft's IActiveScript conventions. This includes …

javascript .net wsh chakra iactivescript
How can I run a WSH script without seeing the Microsoft header?

When a .vbs script is run from the command line, it will by default show a Microsoft header: Microsoft (R) …

wsh
Create COM/ActiveXObject in C#, use from JScript, with simple event

I'd like to create a COM object in C#, and use it via IDispatch from JScript. That part is pretty …

c# com wsh jscript activexobject