Showing results for VBScript - Scripting Blog [archived]

Aug 4, 2004
0
0

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
0
0

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
Aug 2, 2004
0
0

Registry Script Doesn't Work

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I tried writing a script to read data from the registry, but I keep getting this error:   Do you have any idea what's wrong? I'm running Windows XP Professional, Service Pack 1, and this is the code I'm using: -- LW, Omaha, NE Hey, LW. The error you are getting (80041010) means that the specified class (in this case, root...

Scripting Guy!VBScriptWMI