Top "Wsh" questions

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

How can I determine if a file is locked using VBS?

I am writing a VB Script to update some files on the network. Before beginning, I want to know if …

vbscript wsh filesystemobject
CScript and VBS to Remove Line Breaks from Text File

I have a batch file running which spits out a text/html file. The batch file is causing some line …

vbscript line-breaks wsh
Checking VBScript syntax

Any good utilities out there for verifying VBScript syntax without actually running the script? What I'm getting at is if …

vbscript syntax wsh
.bat for batch rename to increment numbers in fname

I have a large folder of .cbr's, and I'm renaming them by issue number to correctly order them. What do …

batch-file command-prompt wsh batch-rename
Is it possible to change the automatic configuration script address in the LAN settings of Internet Explorer 8 with the help of a script?

I use 2 different automatic configuration script addresses in the LAN settings of Internet Explorer 8. During the course of my work, …

internet-explorer internet-explorer-8 automation wsh
Display a message box with a timeout value

The question comes from code like this. Set scriptshell = CreateObject("wscript.shell") Const TIMEOUT_IN_SECS = 60 Select Case scriptshell.popup("…

excel vba winapi messagebox wsh
Copy folder contents to a created .zip file: 'file not found or no read permissions'

I'm trying to create a .zip file from an existing folder using JScript and it seems that my copyHere function …

windows jscript wsh
Running Javascript with CScript?

I'm trying to learn how to run Javascript (instead of VBScript) using CScript.exe, but when I try, I get …

windows-7 windows javascript wsh
How can I write a simple JScript input/output program?

I'm planning on using JavaScript to enter an informatics competition (BIO) tomorrow. However, I can't rely on the examiner having …

javascript wsh jscript
cscript - print output on same line on console?

If I have a cscript that outputs lines to the screen, how do I avoid the "line feed" after each …

windows ascii console-application wsh control-characters