Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Add-Type -AssemblyName System.Windows.Forms
- $FileBrowser = New-Object System.Windows.Forms.OpenFileDialog -Property @{
- InitialDirectory = [Environment]::GetFolderPath('Desktop')
- #Filter = 'Documents (*.docx)|*.docx|SpreadSheet (*.xlsx)|*.xlsx'
- }
- $null = $FileBrowser.ShowDialog()
- $FileBrowser.FileName
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement