| Solution |
| 1. | Create a new task |
- Click on New -> Task Editor.
|
| 2. | Loop through all the files in a folder |
- Select Start Loop in Conditions/Loops category.
- Select Files for folder option.
Screenshot 1 |
| 3. | Select only document Files |
- Under Conditions / Loops category, double-click on If command
- Select the option Variable
- Click on Edit button
- From the first drop down box select the System variable name Extension
- Select the Operator 'Equals'
- In the File option specify the value 'doc'
Screenshot 2 |
| 4. | Open a document |
- Under Program/Files/Windows category, double-click on Program/Files command
- In Program/File path specify the value '$CurrentDirectory$\$FileName$.$Extension$'
Screenshot 3
Open "$CurrentDirectory$\$FileName$.$Extension$ " |
| 5. | Apply formatting to the document |
Insert keystrokes in the documents to apply formatting.
- Select All the contents and do justify.
- Open change case window and select sentence case.
- Open font window and apply 'Times new Roman' font
- Close the file.
Screenshot 4 |
| |
| When you run this task, it loops through all the documents of a folder and formats them. |