| T07 - Delete and move files |
| Task Description |
Delete all .txt files in a folder and move all .doc files from that folder into another folder.
T07.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
|
 |
Delete all txt files
Select "Files/Folders->Delete File(s)" command. Insert the Path of the Folder in the Input box (e.g. "C:\My Folder\*.txt"). Save the Command. |
 |
Copy .doc files
Select "Files/Folders->Copy File(s)" command. Insert the Path of the Source Folder in the first Input box (e.g. "C:\My Folder\*.doc"). Insert the Path of Destination Folder in the second Input box (e.g. "C:\New Folder\"). Save the Command. |
 |
Delete .doc files
Select "Files/Folders->Delete File(s)" command. Insert the Path of the Folder in the Input box (e.g. "C:\My Folder\*.doc") from where files are to be Deleted. Save the Command. |
|
| When you run this task, it will delete the .txt files and move the .doc files from source to the destination folder. |
|
 |
| 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 >> |
|