Name | Modified | Size | Downloads / Week |
---|---|---|---|
SingleFileExample.bat | 2017-12-12 | 558 Bytes | |
SingleFileExample.vbs | 2017-12-12 | 620 Bytes | |
OpenFileDialog.exe | 2014-05-09 | 8.7 kB | |
Readme.txt | 2014-05-09 | 962 Bytes | |
Totals: 4 Items | 10.8 kB | 0 |
ABOUT: OpenFileDialog is build with C# in Visual Studio. Its purpose is to provide a file dialog that can be called from scripts, like Windows Script Host or batch files. I originally wrote this in PowerShell, but PowerShell requires each user to perform configuration to allow PowerShell scripts to run. That is too much work to ask a user to do. The software should just work out of the box. USAGE: OpenFileDialog.exe "Dialog Title" "Doc Type|*.ext" [multiselect] OUTPUT: Any selected files are written to standard output, one per line. Your script must read them in. If you just run OpenFileDialog from the command line you will not see any output. But, if you redirect the output to a file, you will see it in a file: OpenFileDialog "Open a File" "C Language Files|*.c" multiselect > selected.txt EXAMPLE 1: for /f %%f in ('openfiledialog "Stuff" "Java Files|*.java" multiselect') do ( echo %%f )