Scripting Blog [archived]

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

Use an Easy PowerShell Command to Search Files for Information

Summary: Learn how to use a Windows PowerShell command to search easily for information in a collection of files.   (image) Hey, Scripting Guy! I need to be able to parse multiple files for text that are in a single folder. I hate to have to write a script for such a common task, but I am afraid I will have to do so. Can you help me? &...

Scripting Wife Uses PowerShell to Create Files Automatically

Summary: The Scripting Wife learns how to use Windows PowerShell to automatically create files with the date stored in them. The room seems quiet now. I take a deep breath, let it out slowly, and begin to relax. My name is Ed Wilson. I am the Microsoft Scripting Guy. I have just completed the second in a series of five Live Meetings during ...

Create a Custom File Extension by Using PowerShell

Summary: Learn how to use Windows PowerShell to create a custom file extension to store code snippets. Weekend Scripter: Creating a .snip file type Microsoft Scripting Guy, Ed Wilson, here. After I created the Get-CodeSnippet function yesterday, I decided that it might be useful to have my own file extension to keep track of code snippets. ...

A Windows PowerShell Carol: Ebenezer Script Creates Text Files

Summary: A Windows PowerShell Carol in which Ebenezer Script learns how to create and to delete text files using PowerShell.   (image) Hey, Scripting Guy! Will Ebenezer Script ever see how easy it is to use Windows PowerShell to work with text files? -- SK   (image) Hello SK, Microsoft Scripting Guy Ed Wilson here. It is almost the...

Hey, Scripting Guy! Weekend Scripter: The Scripting Wife Redirects Output and Creates a Text File

(image)  Microsoft Scripting Guy Ed Wilson here. I love it when it rains. It sings of cleansing, freshness, new birth, and endless possibilities. Especially when it is a gentle spring rain like we are enjoying right now. It reminds me of when the Scripting Wife and I first went to Maui, Hawaii. We were staying near the beach, and every ...