Simple PowerShell File Picker

August 13, 2014
powershell tip

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

comments powered by Disqus