Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Select Text in a HTA and Then Append That Text to a File?

(image) Hey, Scripting Guy! I read your column about the HTA that could load and then display all the files in a folder. That was pretty useful, but I had an idea to make it even better. When looking at a log file I often see portions of the log that I’d like to copy and save to a separate text file. Is there any way to highlight text ...

Hey, Scripting Guy! How Can I Read Custom Summary Information Properties for an Office Excel File?

(image) Hey, Scripting Guy! We’ve added a number of custom properties to the summary information pages of our Office Excel files. How can I access those custom properties using a script?-- UR(image) (image) (image) Hey, UR. You know, the Scripting Guy who writes this column almost didn’t write this column today. That’s because he’s...

Hey, Scripting Guy! How Can I Read Computer Names From a Text File and Then Verify Whether or Not Those Computers Still Exist?

(image) Hey, Scripting Guy! How can I read a list of computer names from a text file, and then check to see if those computers still exist in Active Directory?-- CL(image) (image) (image) You know, that’s a good question, CL, we – hold on a second. Some of you out there look so sad; why the long faces? After all, the 2008 Winter ...

Hey, Scripting Guy! How Can I Count the Number of Sentences and Paragraphs in an Office Word Document?

(image) Hey, Scripting Guy! I just read your article about getting Word documents statistics and would like to know if there is any way of getting the number of sentences and paragraphs per document.-- RLP(image) (image) (image) Hey, RLP. To be perfectly honest, now that the Super Bowl is over the Scripting Guy who writes this column is ...

Hey, Scripting Guy! How Can I Create an HTA For Displaying Log Files?

(image) Hey, Scripting Guy! I have a bunch of log files (all in the same folder) that I periodically need to review. What I thought would be really cool would be to have an HTA that, when it starts up, retrieves all the log file names and displays those names in a list box; I could then click any file name and the HTA would read the file and...