Jump to content

Set marked filenames to string


Morrison
 Share

Recommended Posts

You could also use a fileopendialog like this:

Opt("MustDeclareVars",1)

Const $FILTER = "avi (*.avi)"
Dim $files,$splitted

$files = FileOpenDialog("title","",$FILTER)
If @error == 1 Then
    Exit
EndIf

$splitted = StringSplit($files,"|")
If $splitted[0] == 1 Then
    ; path+filename is in $splitted[1]
Else
    For $i=1 To $splitted[0] Step 1
        ; path is in $splitted[1]
        ; filename is in $splitted[$i]
    Next
EndIf
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...