Guest bassorider Posted April 29, 2004 Share Posted April 29, 2004 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 More sharing options...
scriptkitty Posted April 29, 2004 Share Posted April 29, 2004 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 More sharing options...
Guest bassorider Posted April 30, 2004 Share Posted April 30, 2004 Thank you! It works great! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now