bobheart, what about this?
GUICreate("BUP", 320, 280)
$label1 = GuiSetControl("label", "", 10, 10, 300, 20, 0x1000)
$choose = GUISetControl ("button", "Choose Folder", 10,40,100,20)
GuiSetControlNotify()
$md = GUISetControl ("button", "Make Folder", 10,60,100,20)
GuiSetControlNotify()
;----------------------------------------------------------
GuiShow()
While GUIMsg() <> -3
$msg = GuiRead()
Select
;------------------
Case $msg = $choose
$backup_path = FileSelectFolder("Choose Backup Dir", "", 0)
GuiWrite($label1,0,"Backuppath: " & $backup_path)
;------------------
Case $msg = $md
$new_folder_name = InputBox("New Folder", "Enter new Foldername:")
$where_to_put = FileSelectFolder("Where to create new Folder?", "", 0)
$ret = DirCreate($where_to_put & "\" & $new_folder_name)
If $ret = 1 Then
$backup_path = $where_to_put & "\" & $new_folder_name
GuiWrite($label1,0,"Backuppath: " & $backup_path)
Else
MsgBox(0, "!!!", "Error!")
EndIf
;---------
EndSelect
Wend
Just an example. No errorhandling.
arctor