| T24 - Automate File Management. Organize
Folders based on File Extension. |
| Task Description |
Organizes folders by moving files into respective folders based
on the file extension.
T24.atmn
Note: Save the .atmn file in My Documents -> Automation Anywhere -> Automation Anywhere -> My Tasks
|
| Solutions |
 |
Create new task
Click Tools -> Task Editor. |

Screenshot 1

Screenshot 2

|
 |
Go through all the files
Insert Loop command to loop through each file in a folder command. |
 |
Create the folders based on the extensions
- Insert IF command by selecting it from Conditions / Loops category.
- Select 'Folder does not exist' condition
- Specify the variables $CurrentDirectory$\$Extension$FileCollection
|
 |
Move the files to the respective folder
Copy files command will copy current file in loop to the folder of its respective type. For example if file name is C:\AutomationAnywhere.txt then it will copy the file to txtFilecollection folder created in above step. |
 |
Delete the copied files
Insert a Delete File command to delete the files to avoid duplicate
copies. |
|
| When you run this task, it loops through each file in a folder
and will create folders for each of the different extension types
and moves the files within the respective folders. |
|
 |
| We started using this product to copy data from legacy system to new system. Now we use it just to do about anything automated. Countless hours saved. Thank you guys. |
- Jack Greenberg
|
| Read Customer Testimonies >> |
|