Jump to content
Sign in to follow this  
iceberg

FileOpenDialog

Recommended Posts

iceberg

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.

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Hawkwing

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.

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  

×