Category Archives: PowerShell

Making an executable take pipelined input in PowerShell

It annoys me when I am working with PowerShell try to pipe the results of a cmdlet into a exe which doesn’t understand pipelined data.  To solve this problem I began aliasing some of the common programs I would like … Continue reading

Posted in PowerShell | Leave a comment

A Mercurial PowerShell Prompt

Since switching to Mercurial I often use the “hg summary” command. hg summary [--remote] aliases: sum summarize working directory state     This generates a brief summary of the working directory state, including …

Continue reading
Posted in Mercurial, PowerShell | Leave a comment

Count the number of lines in your project with one line of Powershell

ls * -recurse -include *.aspx, *.ascx, *.cs, *.ps1 | Get-Content | Measure-Object -Line

Just replace the file extensions with the ones you use in your project.

Continue reading
Posted in PowerShell | Leave a comment