Jump to content

Recommended Posts

Posted

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")

Posted

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!
Posted

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.

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
×
×
  • Create New...