Adding to the previous comment, using combination of loop for folder in a folder and loop for file in a folder, we can make task to run for any number of folders or files located at specific location.
A sample task is attached for reference. The sample task will ask for the specific location to look for .txt file and finally copy it to different location.
Attachment contains “Test” folder containing text file, excel file, word file and folder 1 and 2. Folder 1 and 2 are also containing txt file. Folder “Result” is destination folder where all the files are required to be transferred.
To run sample task please follow the below mentioned instructions:
1. Save and extract the zip file at any location.
2. Save folder “Test”, “Result” and text file “FolderPathList.txt” on C:\
3. Save FolderFile.atmn at My Documents\Automation Anywhere\Automation Anywhere\My Tasks
4. Launch Automation Anywhere.
5. Select the task and click on run.
6. When the prompt appears select C:\Test and click on OK
7. All .txt files from folder "Test" and sub folder "1" and "2" will be copied to folder “Result”
Hope it helps!
|