Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Remove Specified Commas from a Comma-Separated Values File?

(image) Hey, Scripting Guy! I have a comma-separated values file in which several fields have a comma embedded in the field value; that’s causing problems when I try and import the information into another application. I was wondering if there is a way to remove all the commas that are enclosed inside double quote marks, leaving all the ...

Hey, Scripting Guy! How Can I Retrieve Free/Busy Time From Microsoft Outlook?

(image) Hey, Scripting Guy! How can I write a script that retrieves free/busy time from Outlook?-- JH(image) (image) (image) Hey, JH. As we noted yesterday, the Scripting Guys are back from a whirlwind trip to Orlando, where we flew into town, delivered a pair of instructor-led labs (Windows PowerShell for VBScripters) and then – wanting...

Hey, Scripting Guy! How Can I Run a Command-Line Tool Multiple Times and Save the Output to a Text File?

(image) Hey, Scripting Guy! I’m trying to write a script that will run Fsutil.exe against all the drives on a computer. That’s pretty easy. However, I’d like to have all the output written to a text file rather than displayed on screen; that’s the part that I haven’t had much luck with. Any help here would be greatly appreciated...

Hey, Scripting Guy! How Can I Get a List of All the Styles in a Word Document?

(image) Hey, Scripting Guy! Is it possible to get a list of all the styles available in a Word document?-- RK(image) (image) (image) Hey, RK. Believe it or not, TechEd Orlando is over, at least for the Scripting Guys. Admittedly, it was a somewhat abbreviated trip: we flew in, presented a couple of instructor-led labs, and now we’re ...

Hey, Scripting Guy! How Can I Get a Script to Pick Up Where It Left Off After a Reboot?

(image) Hey, Scripting Guy! I would like to write a script, with a number of sequential actions, that can continue where it left off after a reboot. How can I do that?-- GS(image) (image) (image) Hey, GS. By the way, what are you doing at 10:00 AM Eastern Daylight Time today? Nothing? Great; then we’ll see you at the Orange County ...