3

At work we constantly write CMD batch scripts that will take one, two, or three folders as parameters.

As sometimes the end users would be interested in using those scripts, and as is it long, boring, error-prone and fastidious to type in cmd a command-line with three folder paths as arguments I would like to be able to do like this on Linux:

my_destination_folder="$(zenity --folder-selector --title "choose your folder")"

with some tool like:

FOR /F "usebackq tokens=*" %%G IN (`XXX.exe`) do SET my_destination_folder=%%G

Do you know any simple tool that can be my XXX.exe?

Possibly a standalone, minimalistic tool...

Thank you

Benoit
  • 7,113

3 Answers3

2

Seemed like an interesting idea so I made another one for you :)

Here is your XXX.exe: Link

Source code is included.

enter image description here

enter image description here

2

I would think that an AutoIt program could be made for this, where a dialogue box would instruct the user to click on the three required folders in turn.

paradroid
  • 23,297
1

I found Wizard Apprentice. Still, it does not directly open a file selection dialog, you have to click a browse button.

Benoit
  • 7,113