Function Get-SaveDir()
{
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") |
Out-Null
$SaveFileDialog = New-Object System.Windows.Forms.FolderBrowserDialog
$SaveFileDialog.Description = "Type in a description"
$SaveFileDialog.ShowDialog() | Out-Null
$SaveFileDialog.SelectedPath
}
$SaveDir = get-savedir
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment