Simple PowerShell File Picker

Here is a simple function to create a basic graphical file picker.

Inspired by the more robust, but more verbose snippet posted on powershell.com.

function PickFile 
[string]$Path = $PWD)

   Get-ChildItem $Path -File | Out-GridView -PassThru

PickFile

Tags// , ,
comments powered by Disqus