is it possible to open a explorer window from powershell and store the path selected in the explorer, to a variable?
to open explorer window from powershell
I found the use of reflection in the selected answer to be a little awkward. The link below offers a more direct approach
http://www.powershellmagazine.com/2013/06/28/pstip-using-the-system-windows-forms-folderbrowserdialog-class/
Copy and pasted relevant code:
Add-Type -AssemblyName System.Windows.Forms
$FolderBrowser = New-Object System.Windows.Forms.FolderBrowserDialog
[void]$FolderBrowser.ShowDialog()
$FolderBrowser.SelectedPath