Select several files

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Reimon
Pro Scripter
Posts: 55
Joined: Wed Mar 31, 2004 4:46 pm

Select several files

Post by Reimon » Tue Jun 30, 2009 5:52 pm

Hello!!!

Which is the best and easy way to select several files by a dialog to treat them later?

Greetings,

Reimon

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Jul 01, 2009 2:21 am

Only have time to give you an overview right now, but hopefully this will be enough for you to flesh out the skeleton.

Select the file names using a FileBrowse button, and save the selected files as individual variables, or combine them into a single string variable with delimiters that can be separated later using Separate when the processing is needed.

1. Select the file in the Dialog with FileBrowse
2. Concatenate the selected file to a string variable (%FilesToDo% ), separated by a semicolon.
3. Go back to the Dialog, repeat steps 1-3 until all files have been selected
4. Use Separate to get the final list and a total count of files to be processed.
4. Make loop to call the %FilesToDo%, do the process,
5. Repeat the process, incrementing the counter until it matches the %FilesToDo_Count% from the Separate command.

The following may make this more clear.......
See the sample script in HELP on the Separate command. The first line, GetFileDir is done with steps 1-3 to develop %files%. Replace the Message
line with the Process steps you need to do.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Reimon
Pro Scripter
Posts: 55
Joined: Wed Mar 31, 2004 4:46 pm

Thanks

Post by Reimon » Wed Jul 01, 2009 7:29 am

Dear Bob,

Thanks a lot, that was pretty useful for me.

Reimon

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts