Jump to content
Sign in to follow this  
Uten

Let user select multiple folders

Recommended Posts

Uten

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:

FoldersSelect()
Exit
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")
    Else
        $var = StringReplace($var, "|", @CRLF)
        MsgBox(4096,"","You chose " & $var)
    EndIf
EndFunc

Or a modified version of Holgers tristate GUI treeview sample?

Share this post


Link to post
Share on other sites
new2this

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.

Share this post


Link to post
Share on other sites
PsaltyDS

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.

:P


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

Share this post


Link to post
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
Sign in to follow this  

×