Showing tag results for scripting techniques

Aug 9, 2004
Post comments count0
Post likes count0

Can I Enable the Caps Lock Key?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a script where users enter some information in an Input box. The information needs to be entered in all-capital letters, so my instructions say, “Please make sure the Caps Lock key is on before entering the information.” They don’t always do that, however. Is there a way to turn the Caps Lock key on and off using a scrip...

Scripting Guy!scripting techniquesVBScript
Aug 6, 2004
Post comments count0
Post likes count0

How Can I Use Long File Names as Parameters?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I’m trying to run a command-line tool from a script, but I need to pass it a long file name like C:\Documents and Settings\All Users\Desktop\logfile.txt. No matter how I try to pass that file name, however, my script blows up on me. Help!-- WK, Birmingham, Great Britain Hey, WK. Ah, yes: you’ve encountered the dreaded double do...

Scripting Guy!scripting techniquesVBScript
Aug 4, 2004
Post comments count0
Post likes count0

How Do I Change the Title of a Message Box?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Whenever I use a message box, the caption reads Windows Script Host. Is there any way to change that caption?-- TT, Reno, NV Hey, TT. To answer your question, no, not if you’re using Wscript.Echo; in that case, you’re stuck with the caption Windows Script Host. However, you can create a custom caption using the VBScript Msgbox...

Scripting Guy!scripting techniquesVBScript
Aug 3, 2004
Post comments count0
Post likes count0

How Can I Get Yesterday’s Date?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I’m writing a script, and I need to know yesterday’s date. I can use Date() to figure out today’s date, but how do I figure out yesterday’s date?-- SS Hey, SS. You’re right; it’s easy to determine today’s date using a script: But what about yesterday’s date? Listen, we’ve got good news for you: it’s just as easy to determine ye...

Scripting Guy!scripting techniquesVBScript