Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Execute a Scheduled Task in Windows Vista?

Hey, Scripting Guy! I understand that, in Windows Vista, I can write a script that will cause a scheduled task to immediately execute. How do I do that?-- KW Hey, KW. Before we answer today’s question, we’d like to take a moment to say a few things in memory of our colleague, Scripting Guy Dean Tsaltas. Not that Dean has died or ...

How Can I Reverse All the Lines in a Text File?

Hey, Scripting Guy! How can I “rotate” a text file 180 degrees? I need the last line in the file to become the first line, the first line in the file to become the last line, and all the lines in between to switch places as well.-- BJM Hey, BJM. You know, when most people think of the Scripting Guys they think, “OK, sure, those guys ...

How Can I Get a List of Appointments for a Specific Month?

Hey, Scripting Guy! How can I get a list of my appointments for a specific month (for example, all my appointments for December, 2007)?-- HG Hey, HG. We’ll get to your question in just a moment. Before we do that, however, the Scripting Guy who writes this column wants to take a little time and enjoy the last few days of August (and, in ...

How Can I Find All the Files in a Directory Tree that Contain a Specific Word or Phrase?

Hey, Scripting Guy! How can I find all the files in a directory tree that contain a specified phrase?-- PB Hey, PB. OK, so picture this: for the first time in a couple of months, the Scripting Guy who writes this column and the Scripting Son are playing basketball. The Scripting Son has a comfortable lead, but the Scripting Guy who writes ...

How Can I Replace Numeric Values in an Excel Spreadsheet?

Hey, Scripting Guy! We have a spreadsheet where people enter a bunch of data. In order for this data to be used in another application, none of the values can exceed 999; if we have a value like 1234, that’s supposed to be entered as 999, the maximum-allowed value. However, people have a tendency to enter the value as 1234; that means that...

Feedback usabilla icon