Created
July 22, 2016 15:00
Star
You must be signed in to star a gist
Prompt for folder selection with a dialog.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$path = [System.IO.Path]::GetDirectoryName($MyInvocation.MyCommand.Path) | |
$objShell = new-object -com shell.application | |
$objFolder = $objShell.NameSpace($path) | |
$namedfolder = $objShell.BrowseForFolder(0,"Select the root of the driver.",0,$path) | |
$namedfolder.self.path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment