|
Task Description: Ask user for a
folder and give read permission to all files in that folder.
This task can be modified to change other attributes/permissions.
T73.atmn
Note: Save the .atmn file in My Documents->Automation
Anywhere->Automation Anywhere->My Tasks
|
Solution |
| 1. |
Create Variable |
- Click on “Tools” and select the option “Variable
Manager”.
- Click on “Add New Variable”. Select the
type of variable as “Value”, specify the name
of the variable as “FolderPath”.
- Give any value and save the variable.
Screenshot 1
|
| 2. |
Prompt user for folder |
- In the main Automation Anywhere window click
on Tools->Task Editor
- From the list of commands, double-click
the 'Prompt'
- In Select window, Select 'Don't write in
any Window'. Enter Message as shows in
Screenshot 2.
Select Assign value to Variable and select "FolderPath"
as variable.
- Click on Save button in the Prompt command.
|
| 3. |
Check if Path is correct |
- Check if path is correct. If not, show error
message and stop the task as shown.
Screenshot 3
|
| 4. |
Execute command in
CMD window |
- Open CMD window and using keystroke command,
execute command as shown.
Screenshot 3
|
| |
| Create
this task once and this can be used by any user
to change attributes of all files in a folder. When
you run this task, it asks user for “Folder Path”,
goes to that folder and changes file attributes
to “Read Only”. You can create similar
tasks to change attributes to say “Hidden Files”
or change “Read only” file properties back to “Achieve”
mode and so on.
|
Screenshot 1:

Screenshot 2:

Screenshot 3:

|