Re: FolderBrowserDialog Problem (Powershell)
- From: Kryten <Kryten68@xxxxxxxxxxxxxx>
- Date: Sat, 30 Aug 2008 02:54:26 -0700 (PDT)
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
.
- References:
- FolderBrowserDialog Problem (Powershell)
- From: Kryten
- FolderBrowserDialog Problem (Powershell)
- Prev by Date: FolderBrowserDialog Problem (Powershell)
- Next by Date: Re: FolderBrowserDialog Problem (Powershell)
- Previous by thread: FolderBrowserDialog Problem (Powershell)
- Next by thread: Re: FolderBrowserDialog Problem (Powershell)
- Index(es):
Loading