Hello!!!
Which is the best and easy way to select several files by a dialog to treat them later?
Greetings,
Reimon
Select several files
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
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.
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!
Bob
A humble man and PROUD of it!