Path PowerLine
Thursday, June 7th, 2007I am constantly impressed by how quick you can get the job done with PowerShell. As I have mentioned before one-liners, or PowerLines as I prefer ;) are a good example, although not always practical.
So here’s my PowerLine for the day:
if (! ($env:path).contains("C:\coding") ) { $env:path+= ";C:\coding" }
This basically checks if the path statement contains [...]
Power Lines
Wednesday, April 4th, 2007Once you’ve been using PowerShell for a while you start to notice that you can often get the job done using just one line of code. These “one liners” can sometimes look pretty impressive, but they are also get pretty cryptic!
Its a good sales pitch for PowerShell: “yeah, I can do [insert amazing feat [...]