Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Schedule a Meeting Each Monday Through Friday For Two Weeks?

(image) Hey, Scripting Guy! How can I schedule a meeting to occur every day, Monday through Friday, for two weeks?-- GB(image) (image) (image) Hey, GB. As it turns out, the Scripting Guy who writes this column has not moved to some place where it doesn’t snow in April. That’s not because the Seattle area didn’t get the predicted snow...

Hey, Scripting Guy! How Can I Monitor a Folder for the Creation of New Subfolders?

(image) Hey, Scripting Guy! How can I monitor a folder for the creation of new subfolders? I know that new files can be detected (via WMI events) but the same syntax doesn't detect new folders.-- WS(image) (image) (image) Hey, WS. Before we get started today can we ask you a quick question: are you reading today’s column? If you aren’t...

Hey, Scripting Guy! How Can I Parse a Text File and Retrieve All the Information Contained Within Square Brackets?

(image) Hey, Scripting Guy! I need to parse through a text file and extract the information contained within square brackets. So far, however, I haven’t been able to figure out how to do this; that’s because the data isn’t stored on separate lines in the file. Can you help?-- EI(image) (image) (image) Hey, EI. Well, today is Friday, ...

Hey, Scripting Guy! How Can I Store Arrays Within Another Array?

(image) Hey, Scripting Guy! I need to read in data from a text file and store each line as a separate item in an array. However, the data in each line must also be stored as an array; in other words, I need an array made up of other arrays. I tried creating a multidimensional array, but I can’t get it to work. Can you help?-- PA(image) (...

Hey, Scripting Guy! How Can I Find Folders Whose Name Fits a Specified Pattern?

(image) Hey, Scripting Guy! I have a bunch of folders that had names like this: BAD_20080411; in other words, the characters BAD_ followed by the date. These folders can be on any drive on my computer. How can I write a script that will locate all these folders for me?-- NS (image) (image) (image) Hey, NS. Did you hear about the construction...