Scripting Blog [archived]

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

How Can I Add Leading Zeroes to All the Lines in a Text File?

(image) Hey, Scripting Guy! I have a text file where each line is a set of characters like this: 56A63, 78A41, etc. I need to put leading zeroes in front of these strings in order to make them all nine characters long: 000056A63, 000078A41, etc. Oh: and my text file has 20,000 lines that need to be modified like this. How can I do all that ...

How Can I Return the URLs Associated with My Internet Explorer Favorites?

(image) Hey, Scripting Guy! How can I return the URLs associated with my Internet Explorer Favorites?-- DW(image) (image) (image) Hey, DW. It’s time for annual performance reviews here at Microsoft, which means we Scripting Guys are supposed to be looking back and detailing all the many things we’ve done in the past year. Unfortunately...

How Can I Configure the System Failure Options on a Windows Server 2003 Computer?

(image) Hey, Scripting Guy! How can I configure the system failure options on a Windows Server 2003 computer? I’d like to configure the machine to do a small memory dump, and disable both the sending of an administrative alert and the automatic reboot.-- JS(image) (image) (image) Hey, JS. You know, the Scripting Guys happen to all be in ...