Scripting Blog [archived]

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

How Can I Re-Launch Internet Explorer if No Other Instances are Running?

(image) Hey, Scripting Guy! How can I re-launch Internet Explorer if no other instances are running?-- MT(image) (image) (image) Hey, MT. Thanks for the question. You know, nowadays everyone picks on poor little Internet Explorer (even though the vast majority of Windows users still use Internet Explorer). But now we have a question from ...

How Can I Disable a Service?

(image) Hey, Scripting Guy! How can I disable a service?-- DS(image) (image) (image) Hey, DS. You know, the Scripting Guys seem to have stumbled upon a great idea. In our last column, we showed people how to disable the LMHosts file. Today, we’re going to show everyone how to disable a service. If we continue down this path, we’ll soon...

How Can I Prevent a Computer from Using the LMHosts File?

(image) Hey, Scripting Guy! How can I prevent a computer from using the LMHosts file?-- MJ(image) (image) (image) Hey, MJ. You know, this was an interesting one, at least for the Scripting Guys. Not because the script was hard to write; that was actually pretty easy. What was hard - at least for us - was to find the LMHosts setting in the ...

How Can I Format an Excel Spreadsheet So It Retains Leading Zeroes?

(image) Hey, Scripting Guy! How can I format an Excel spreadsheet so that it retains leading zeroes?-- AS(image) (image) (image) Hey, AS. You know, one of the Scripting Guys still has nightmares about the number zero. Several years ago he got a phone call from a friend of his wondering if he’d be interested in helping coach a youth ...

How Can I Truncate Names to a Maximum of 16 Characters?

(image) Hey, Scripting Guy! How can I truncate names to a maximum of 16 characters?-- BN(image) (image) (image) Hey, BN. Brace yourself: it’s time for another trip down memory lane. When one of the Scripting Guys was going to college, he took a temporary summer job with the Green Giant Corporation, working in the office that oversaw the ...