Working with the filesystem
There may be instances where we must create, delete, move, or rename files and folders. Automation Anywhere has two packages: one for files and one for folders. In the following screenshot, you can see the actions that are available for managing the filesystem in Automation Anywhere:
Our current bot creates seven subfolders, with each folder containing a CSV file called output.csv
. To get some hands-on experience with files and folders, we are going to automate the following process:
- Rename every
output.csv
file to its subfolder name. - Move the renamed file(s) to
C:\Hands-On-RPA-with-AA-Sample-Data\Chapter09_Output
. - Delete the empty subfolder(s).
You may have noticed that there isn't a file move action. In order to achieve this, we will perform a copy and delete. We will break this walk-through into five sections to make it easier to follow:
...