Jump to content

Let user select multiple folders


Recommended Posts

You can select multiple files with FileOpeDialog(...) Is it possible to have it return folders that is selected rather than open up the last chosen one? Or do you know of a UDF creating a treeview with "checkable" folders returning what you hav checked of?

Something like this:

Func FoldersSelect($initFolder="")
    ; Multiple filter group
    $message = "Hold down Ctrl or Shift to choose multiple files."
    $var = FileOpenDialog($message, @ProgramsDir, "Folders (*)", 2 + 4 ) ;2:Path must exist, 4:Allow multiselect
    If @error Then
        MsgBox(4096,"","No File(s) chosen")
        $var = StringReplace($var, "|", @CRLF)
        MsgBox(4096,"","You chose " & $var)

Or a modified version of Holgers tristate GUI treeview sample?

Link to comment
Share on other sites

  • 1 year later...

I have the same question. I have an exe that automates a backup routine. I would like to allow users to select multiple directories to include for the backup.

Use the new UDF functions for _GuiCtrlTreeView_Create() and set the $TVS_CHECKBOXES style.


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...