Re: FolderBrowserDialog Problem (Powershell)



Forget it. It's a threading issue in Powershell :-(

Here's the workaround (Use COM instead)

$a = new-object -com
shell.application #
create a shell application
$b = $a.BrowseForFolder(0,"This is my title text",0,"c:\Program
Files") # invoke the browseforfolder method
$b.Self.Path
# echo back the chosen folder & path. $b is now your foldervariable

Cheers,
Stuart
.


Loading