Sign in to follow this  
Followers 0
Guest bassorider

Files And Variables

3 posts in this topic

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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Thank you!

It works great!

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  
Followers 0