Created
July 22, 2016 15:00
-
-
Save matthewjberger/57fcd8a7d7a7625d62f12ad1352fd1ee to your computer and use it in GitHub Desktop.
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