Jump to content

Files And Variables


Guest bassorider
 Share

Recommended Posts

Guest bassorider

Hello

Is there a way to take all the recieved file strings from the file open dialog, and put them into separated variables.

The number of selected files will be different from each time.

Later in the script i would do a For loop with all the files, until theres no more files to work with.

can anybody help me?

Link to comment
Share on other sites

this should show you how it works and how to do what ya want:

$var = FileOpenDialog("test", "C:\Windows\", "Images (*.jpg;*.bmp)", 1 + 4 )
$files=StringSplit($var,"|")
$path=$files[1]&"\"
For $i = 2 To $files[0]
    MsgBox(1,$i,$path&$files[$i])
Next

AutoIt3, the MACGYVER Pocket Knife for computers.

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...