Call Toll Free: 1-888-484-3535    

 Automation Anywhere - The Automation Software

Sample Tasks -> T73 - Change Attributes/Permissions for all files in a folder

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.

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:

 

 PRODUCTS

 Automation Anywhere
   Standard & Premier
   Enterprise
   Integration Pack
 Workspace Macro Pro
 Workspace Macro
 Launch-n-Go
 Free Downloads
 Compare Products
 

 SERVICES

 Ask The Expert
 Consulting Service
 

 PURCHASE

 BUY NOW
 Pricing
 Upgrades
 Our Guarantee

 CUSTOMERS

 Customer List
 Case Studies
 Testimonies

 SUPPORT

 FAQ & Examples
 Have a Question?
 Open A Support Case
 Forums
 

 QUICK LINKS

 Productivity Essentials
 Developers
 

 GENERAL

 Partners
 Affiliates
 Articles: Macro &
 Automation

 Get RSS Feeds

 Press & News
 Contact Us
Home |Site Map |Privacy Policy |About Us |Contact Us

Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved. Trademarks