Sign in to follow this  
Followers 0
eJan

FileSelectFolder

5 posts in this topic

I'm tryng to have selected existing folder "EditPlus 2", but only solution i have selected is "Program Files", maybe the script isn't good or function doesn't work properly

Posted Image

$message = "Select folder to open"

$open = FileSelectFolder($message, @ProgramFilesDir, -1,  "EditPlus 2")

Share this post


Link to post
Share on other sites

Hmm, you need the FULL path to EditPlus 2.... This is not an AutoIt bug, but the function could be improved...

$message = "Select folder to open"
$open = FileSelectFolder($message, @ProgramFilesDir, -1, @ProgramFilesDir & "\EditPlus 2")

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Hmm, you need the FULL path to EditPlus 2.... This is not an AutoIt bug, but the function could be improved...

CODE$message = "Select folder to open"

$open = FileSelectFolder($message, @ProgramFilesDir, -1, @ProgramFilesDir & "\EditPlus 2")

CyberSlug thanks again!

Share this post


Link to post
Share on other sites

I'm just working right now to improve it :)

So you could take as initial dir the _relative_ folder under the root dir or the complete path...

Like

FileSelectFolder($message, @ProgramFilesDir, -1, "EditPlus 2")

Share this post


Link to post
Share on other sites

I'm just working right now to improve it

So you could take as initial dir the _relative_ folder under the root dir or the complete path...

Like

FileSelectFolder($message, @ProgramFilesDir, -1, "EditPlus 2")

Yes, but then i can't see other folders in @ProgramFilesDir (the path works).

I use CyberSlug suggestion which works exactly as i need.

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