Scripting Blog [archived]

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

How Can I Insert Multiple Files Into a Word Document, Putting a Page Break Between Each File?

(image) Hey, Scripting Guy! On May 3rd you showed us how to merge multiple files in Microsoft Word. I’d like to do that, but put a page break between each file.-- CE(image) (image) (image) Hey, CE. You know, when we read your email our first thought was this: no way did we show people how to merge multiple files back on May 3rd 2005. ...

How Can I Verify That a Folder Has Files in It and, If So, Delete Those Files?

(image) Hey, Scripting Guy! How can I verify that a certain folder (C:\TestLog) has files in it and, if so, delete all those files?-- DC(image) (image) (image) Hey, DC. Before we begin we should point out that - when using WMI - it doesn’t matter whether or not a folder has any files in it: you can still tell WMI to delete all the files ...

How Can I Add the Last Lines from a Group of Text Files to a Word Document?

(image) Hey, Scripting Guy! How can I take the last line in a group of text files and paste that information into a Word document?-- JV(image) (image) (image) Hey, JV. You know, one thing we try to do in this column is focus on practical system administration tasks. We’ll deviate from that focus every now and then, but for the most part ...

How Can I Unhide All the Files in a Folder?

(image) Hey, Scripting Guy! How can I run a script to unhide all the files in a folder?-- GA(image) (image) (image) Hey, GA. You know, when one of the Scripting Guys was a bit younger he and the other kids in his neighborhood spent countless hours playing variations on hide-and-seek; in fact, this Scripting Guy still has vivid memories of ...