Sign in to follow this  
Followers 0
lyledg

FileSelectFolder question

3 posts in this topic

I have a GUIinput box that needs to be populated with a chosen folddername

Global $PriSrc = GUICtrlCreateInput("", 40, 80, 300, 18,); will accept drag&drop files
GUICtrlSetState(-1, $GUI_ACCEPTFILES)

$folder = FileSelectFolder("Choose a directory to backup to:", "::{208D2C60-3AEA-1069-A2D7-08002B30309D}")

If @error Then
MsgBox(4096,"","Backup cancelled.")
Else
MsgBox(4096,"","You chose " & $folder)


$Folderset = GUICtrlSetData($PriSrc, GuiRead ($folder))

The GuiInput gets populated, but with numbers. I need to do the same action for various Inputboxes..Is there an easier way to do this?

Cheers

Lyle

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

isnt it just

$Folderset = GUICtrlSetData($PriSrc, $folder)

Edit : also you need to use guicreat, I suggest you use cyberslugs autobuilder if you want a quick good job (still in prototype) http://www.autoitscript.com/fileman/users/public/CyberSlug/nov27proto.zip

Edited by killaz219

Share this post


Link to post
Share on other sites

Yea, i just found it as you posted this...sorry for the question..

Thanx mate

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  
Followers 0