$OFD.InitialDirectory = ::GetFolderPath('Desktop')Īs Aacini hinted use an array variable to receive the file names in batch :: off & Setlocal EnableDelayedExpansion The whole PowerShell part with the variable name shorted to $OFD ::LoadWithPartialName('')|Out-Null $OpenFileDialog.InitialDirectory = ::GetFolderPath('Desktop')Īlso the result of a Multiselect is returned in the FileNames property, note the plural. $OpenFileDialog.Filter = 'TXT (*.txt)| *.txt' ShowDialog() method: $OpenFileDialog.Multiselect = $true OpenFileDialog needs some more settings before invoking the. You should develop your solution in PowerShell and if really neccessary wrap it in batch once it works as expected. If not fluent in multiple script languages it's always difficult to combine them.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |