Top "Wsh" questions

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

VBScript WScript.Shell Run() - The system cannot find the file specified

I'm trying to write a VBScript (.vbs) script that uses the WScript.Shell Run() method, but it seems as though …

vbscript wsh
Using VBScript to find most recent file date in a single folder

How could I modify this VBScript to return only the newest file's name and Last Modified date? Currently it returns …

file-io vbscript wsh
Failproof Wait for IE to load

Is there a foolproof way for the script to wait till the Internet explorer is completely loaded? Both oIE.Busy …

internet-explorer web-scraping vbscript wsh readystate
Script to make content entry into a text file

How do I include some "text" into a .txt format file without opening the same via a script on Windows?

powershell vbscript wsh
Send mail from a Windows script

I would like to send mail from a script on a Windows Server 2003 Standard Edition. I think the server setup …

windows email scripting smtp wsh
How can I download a file with batch file without using any external tools?

First to clarify this question is aimed to HTTP(s) download .For FTP may be I'll ask (and answer) another …

.net jscript wsh batch-file
Is it possible to add a directory to DLL search path from a batch file or cmd script?

MSDN says that the function SetDllDirectory() can be used to insert a directory into the DLL Search Path. Can this …

batch-file cmd dll wsh
If exists then quit VBS

Please take this script into context with my question: If objFSO.FileExists("C:\Windows\Fonts\" & objFile.Name) Then Wscript.…

vbscript wsh
A .bat or .wsh script that can search for files

I am looking for some examples of a .bat OR .wsh script that can do the following: Recursively read file …

batch-file scripting wsh
VBScript set focus on a window in IE

I'm updating an old piece of code that uses VBScript to pull up a window in IE. For some reason, …

internet-explorer vbscript setfocus wsh