Jump to content

FileOpenDialog


iceberg
 Share

Recommended Posts

hi guys,

$message = "Hold down Ctrl or Shift to choose multiple files."

$var = FileOpenDialog($message, @WindowsDir & "\", "Images (*.jpg;*.bmp)", 1 + 4 )

If @error Then
    MsgBox(4096,"","No File(s) chosen")
Else
    $var = StringReplace($var, "|", @CRLF)
    MsgBox(4096,"","You chose " & $var)
EndIf

this is from the HELP file. the msgbox displays all the selected files.

i only wanna it to display just the file name, not the entire path.

and also for each file, i want a msgbox displayed. not everything displayed together.

can someone kindly help me out here?

thanks.

mouse not found....scroll any mouse to continue.

Link to comment
Share on other sites

  • Developers

hi guys,

$message = "Hold down Ctrl or Shift to choose multiple files."

$var = FileOpenDialog($message, @WindowsDir & "\", "Images (*.jpg;*.bmp)", 1 + 4 )

If @error Then
    MsgBox(4096,"","No File(s) chosen")
Else
    $var = StringReplace($var, "|", @CRLF)
    MsgBox(4096,"","You chose " & $var)
EndIf

this is from the HELP file. the msgbox displays all the selected files.

i only wanna it to display just the file name, not the entire path.

and also for each file, i want a msgbox displayed. not everything displayed together.

can someone kindly help me out here?

thanks.

mmm. posting the helpfile example ...

You are around long enough to show for more that this...What have you tried yourself?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Easy enough, but I won't do it for you. Look at StringSplit, For...Next, and _PathSplit.

The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...