| Solution |
| 1. | Create new task |
Click on New -> Task Editor. |
| 2. | Loop through all the files. |
- Select 'Loop for each file in a folder' command from Loop
command.
- Specify the path of the folder from where you want to pass all the files as a parameter to the VBScript.
|
| 3. | Call VBScript within the Loop |
- Call VBScript within the Loop and pass the following System variables as a parameter to the script
and assigns a return value to the variable.
- Parameter: $CurrentDirectory$\$FileName$.$Extension$
- Return: $vb_return$ Screenshot 1
|
| |
| When you run this task, it loops through all the files of a folder and passes
every file as a parameter to the VBScript and assigns a return value to the variable
and shows a prompt message. |