-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Linux, dialog-node.fileselect
browses for a file. On Windows, it browses for a directory.
#12
Comments
I saw the following on https://gist.github.com/mlhaufe/1034241
Looking at the above code it seems that calling Needs more investigation.. |
Nope.. This example will do the trick (source: https://stackoverflow.com/questions/38643487/vbscript-browseforfile-function-how-to-specify-file-types)
(painfully not indented.. -__-) |
this is a VB sample ... :( |
You are correct. I found no other way to call native Win32 shell APIs from Node.js. Maybe there's another bright mind out there that knows how to do this? |
On Linux,
dialog-node.fileselect
browses for a file. On Windows, it browses for a directory. Which is differs from what it claims it would do. This is because on Windows,shell.BrowseForFolder
is called, which indeed shows a directory selection dialog instead of a file selection dialog (common file dialog).The text was updated successfully, but these errors were encountered: