Possible to spawn windows explorer to select files/directories?

I have a script that I would like to be able to spawn a windows shell so
the user can browse and select files and folders that will be used
within the script. Is this even possible within Ruby? Would be great
to ensure correct inputs every time.

Charlie B. wrote in post #1056002:

I have a script that I would like to be able to spawn a windows shell so
the user can browse and select files and folders that will be used
within the script. Is this even possible within Ruby? Would be great
to ensure correct inputs every time.

Maybe you can do it with
http://rdoc.info/stdlib/win32ole/frames
http://rdoc.info/stdlib/Win32API/frames

You’d probably need to know the name / handle of the file chooser
dialog.

Kind regards

robert

Robert K. wrote in post #1056011:

Charlie B. wrote in post #1056002:

I have a script that I would like to be able to spawn a windows shell so
the user can browse and select files and folders that will be used
within the script. Is this even possible within Ruby? Would be great
to ensure correct inputs every time.

You could do it with a “file chooser” object (jruby makes this easier):

https://github.com/rdp/jruby-swing-helpers