Tag Archives: Test-Path

Finding Files in the Path – A Pipeline Perk

I’ve been chipping in on a forum post about finding if a given file exists in any folder within the system environmental %PATH% variable using Windows PowerShell. There are several ways you might approach this. But the best way in … Continue reading

Posted in Scripting | Tagged , , , , | Leave a comment

Get Profiles

Keith Hill posted a bit of PowerShell code a few days ago that piqued my interest. I knew that in PowerShell, the $profile variable would list your current profile. PS C:\> $profile C:\Users\Jeff\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 This is handy because it makes it … Continue reading

Posted in PowerShell v2.0, Scripting | Tagged , , , , | Comments Off