Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

How Can I Get the Command Window to Stay Open When I Right-Click a Script and Choose Open With Command Prompt?

(image) Hey, Scripting Guy! How can I get the command window to stay open when I right-click a .VBS file and choose Open With Command Prompt??-- BB(image) (image) (image) Hey, BB. You know, according to BB’s email signature, he’s 9 years old. If that’s true, well, that’s absolutely amazing. A 9-year-old who knows VBScript? At age 9...

How Can I Tell Whether a Laptop Computer is Running Off Batteries?

(image) Hey, Scripting Guy! How can I tell whether a laptop computer is running off batteries?-- TJ(image) (image) (image) Hey, TJ. Ah, yes: batteries. Back in December the Scripting House lost power for six days. Was the Scripting Guy who writes this column concerned? Of course not. After all, he was fully prepared for an emergency like ...

How Can I Tell If a Script is Running on the First or Second Monday of a Month?

(image) Hey, Scripting Guy! We have a logon script that needs to perform certain tasks only on the first and second Mondays of the month. How can I determine whether the script is running on the first or second Monday in a month?-- WA(image) (image) (image) Hey, WA. You know, a few months ago the Scripting Guy who writes this column ...

How Can I Expand the Width of the Windows PowerShell Console?

(image) Hey, Scripting Guy! How can I expand the width of the Windows PowerShell console? When I display certain kinds of data – like information from the event logs – that data gets cut off because the console window isn’t wide enough.-- TB(image) (image) (image) Hey, TB. Wow, what a coincidence: we were just about to ask you that ...