Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Show Open File DialogContent of Show Open File Dialog.ps1MD5 Hash: 6E4B5288E685CCDB803638B961C776BB |
||
[void] [Reflection.Assembly]::LoadWithPartialName( 'System.Windows.Forms' )
function Select-File( [string]$initialDirectory=$pwd, [switch]$multiselect ) { $dialog = New-Object Windows.Forms.OpenFileDialog $dialog.ShowHelp = $true $dialog.InitialDirectory = $initialDirectory $dialog.Multiselect = $multiselect if( $dialog.ShowDialog( ) -eq 'OK' ) { $dialog.FileNames } $dialog.Dispose( ) } Select-File "C:\" | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |