Browse by Tags

Arrays in PowerShell
23 October 07 08:39 AM | john | 0 Comments   
While I'm waiting for some files to copy around I thought I'd record my recent PowerShell learnin'. Somtimes a command, like Get-ChildItem can return either an array of results or just a single one. You can use the @ symbol to cast the result into an Read More...
Filed under: ,
Line Count with PowerShell
22 October 07 08:35 PM | john | 0 Comments   
Starting to get the hang of PowerShell. Today I wanted to quickly count the number of lines in some source code. There's a simple implementation and then there's a better one . In the end I settled on: $count=0;gci . -i *.cs,*.cpp,*.h -r | %{$count += Read More...
Filed under: ,
More PowerShell Fun
17 October 07 11:33 AM | john | 0 Comments   
Still struggling to gain traction with PowerShell. I've stopped myself running the CMD prompt by default, and I've installed it on all my test VPC machines. Firstly, I recommend you download the Windows PowerShell Graphical Help File . It's an old school Read More...
Filed under: ,
Adventures with PowerShell
26 September 07 02:44 PM | john | 0 Comments   
I've held off moving to Windows PowerShell. The reason is that I came up with a solution for running C# source directly from the command line as script a few years ago using CodeRunner .NET , and I've haven't had a pressing need for more functionality. Read More...
Filed under: ,