Description |
Sets the attributes of the selected files to the specified attribute mask. |
Declaration |
<AMSETATTRIBUTES SOURCE="text" SUBFOLDERS="yes/no" ISNEWERTHAN="date" ISOLDERTHAN="date" ATTRIBUTES="text (+/-RASH combination)" ATTRFILTER="text (+/-RASH combination)" EXCLUDE="text" RESULTDATASET="text" /> |
Examples |
<AMSETATTRIBUTES SOURCE="c:\myfile.txt" ATTRIBUTES="+s" /> <AMSETATTRIBUTES SOURCE="C:\SourceFolder\*.*" SUBFOLDERS="YES" ISOLDERTHAN="%DateSerial(2007,02,26) + TimeSerial(23,41,46)%" ATTRIBUTES="+a" ATTRFILTER="-s-h" EXCLUDE="*.pri" RESULTDATASET="SetAttrDataset" /> |
General Tab Parameters |
Source: Specifies the files that should be affected by the attribute change. This can be a fully qualified path and file name (preferred) or a file name only (requires use of the Change Folder action). Wildcard characters (* or ?) may be used to specify files matching a certain mask. Multiple file and/or file masks may be specified by separating the entries with a pipe symbol (|). Text, Required Attributes: Specifies the attribute combination that the files should be changed to reflect. In Visual mode, simply select from the drop-down lists. In AML mode, use the RASH attribute system as outlined below. Using the RASH Attribute System: + is Turn On R - Read-Only Examples: Use +R to turn on the read-only attribute and - R to turn it off. Not specifying R as a part of the text would ignore it. Use +A to turn on the archive attribute and - A to turn it off. Not specifying A as a part of the text would ignore it. To change several attributes in a single pass, simply put them together:
Text, Required Create and populate dataset: Specifies the name of a dataset to be created and populated with the result. In addition to the standard dataset fields, the dataset will contain the following:
Text, Optional |
Options Tab Parameters |
Include subfolders: When set to YES (selected), specifies that, if present, subfolders should be searched for files matching the mask specified in the Source [SOURCE] parameter. Yes/No, Optional, Default: NO Exclude mask: Causes the action not to affect files matching the masks specified. Filenames or wildcard masks may be used. Multiple entries may be specified by separating them with a pipe symbol (|), for example: *.txt|*.bak Text, Optional, Default: (blank) Only if newer than: Causes the action to only affect files if the source is newer than the date/time specified. If this parameter is left blank or not included, the date of the files will be ignored (unless limited by the Only if older than [ISOLDERTHAN] parameter). Date, Optional, Default: (none) Only if older than: Causes the action to only affect files if the source is older than the date/time specified. If this parameter is left blank or not included, the date of the files will be ignored (unless limited by the Only if newer than [ISNEWERTHAN] parameter). Date, Optional, Default: (none) Click Custom to select from other time options (Last 30 seconds, Last 30 minutes, Last 24 hours, Last 30 Days, Last 12 Months, Last 5 Years, Next 30 Seconds, Next 30 Minutes, Next 24 Hours, Next 30 Days, Next 12 Months, Next 5 Years). A expression appears in the text box (e.g., %DateAdd( "s", -30, CStr( Now() ))%) and the Expression check box is selected. You can also click the Expression Builder icon to build a custom expression. |
Attributes Tab Parameters |
|