Scripting Blog [archived]

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

How Can I Extract Text Embedded Between Target Phrases in a Text File?

(image) Hey, Scripting Guy! How can I read a text file until I encounter a specified phrase, then write that information to a new text file? I then need to repeat this process, reading the text file to the next instance of the phrase and then writing that information to another new file. And so on.-- EW(image) (image) (image) Hey, EW. You ...

How Can I Determine Which Version of Windows Vista is Installed on a Computer?

(image) Hey, Scripting Guy! How can I determine which version of Windows Vista is installed on a computer?-- GC(image) (image) (image) Hey, GC. You know, Microsoft is one of the largest and most successful companies the world has ever known. And yet, despite all our successes, we’re really no different than any anyone else: for example, ...

How Can I Update and Then Break All the Links in an Excel Spreadsheet?

(image) Hey, Scripting Guy! How can I open an Excel spreadsheet, update all the links to other Excel spreadsheets, and then break those links?-- YH(image) (image) (image) Hey, YH. Before we begin, we’d like to make an announcement: the Scripting Guy who writes this column gives up. To tell you the truth, that’s not something we ever ...

How Can I Open All the Excel Spreadsheets in a Folder and Run a Specified Macro Found in Each of Those Spreadsheets?

(image) Hey, Scripting Guy! How can I loop through a folder, open all the Excel files in that folder, then run a specified macro in each of those Excel files?-- BR(image) (image) (image) Hey, BR. So, did you watch college football this past Saturday? In particular, did you watch as the Washington Huskies dismantled Boise State 24-10, ...

How Can I Assign Multiple Home Pages to Internet Explorer 7.0?

(image) Hey, Scripting Guy! How can I configure Internet Explorer 7 so it uses multiple home pages?-- PI(image) (image) (image) Hey, PI. Just a second; before we begin, is anyone from Microsoft reading today’s column? Don’t be shy; raise your hand if you’re from Microsoft. No one, not a single Microsoft employee is reading today’s ...