Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running a proceseries over a series of variables
#4
I have trying this as test code:



Code:
Copy      Help
str folderpath
BrowseForFolder(folderpath "")

str imagename=
*Blue*
*unset*
*lil*
r.jpg


str imagelauncher
foreach imagelauncher imagename
    str seriescombo.format("%s\%s" folderpath imagelauncher)
    run "$program files$\Internet Explorer\iexplore.exe" seriescombo

in that folder there are four pictures with names

Blue Hills
Water lilies.jpg
Sunset.jpg
Winter.jpg

I want to load each of them successively into internet explorer

The problem is in the syntax in the run line.

How do you specify to open a certain file (regardless of whether it has an appropriate extension or not) into a specific application

e.g.

an image file can come up in many different software apps.

Thanks,
Stuart


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)