The SetAttr internal command can be used to:
Command Arguments:
Argument |
Type |
Possible values |
Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(no argument) |
- |
- |
Displays the Change Attributes & Times
dialog, which lets you modify the attributes and timestamps of
selected files and
folders. | ||||||||||||||||
ATTR |
/K |
<attributes> |
Sets the specified attributes for selected files and folders, and clears all others. The <attributes> value must consist of one or more of the following letters:
Note that modifying the C or E
attributes may take longer than normal, as the file data has to
be (un)compressed or (un)encrypted. Setting these attributes for folders
sets the default compression/encryption state for new files created in
those folders. A file can be compressed, or encrypted, but not both at
once. | ||||||||||||||||
CHMOD |
/K |
<attribute mask> |
Sets the specified attributes for files on a remote FTP site. The
<attribute mask> is specified using octal
notation. | ||||||||||||||||
CLEARATTR |
/K |
<attributes> |
Clears the specified attributes for selected files and folders. The
specified attributes will be turned off, but other attributes will be
untouched. See the description of the ATTR argument for a
list of attribute values. | ||||||||||||||||
CREATED |
/K |
<date/time> |
Sets the creation timestamp for selected files and folders. The value for this argument can be given as either a date only, a time only, or a date and time. The accepted formats for the date string are YYYYMMDD or YYYY-MM-DD, and the time string must be in the format HH:MM:SS. If you specify a time as well as a date the time must come after the
date, separated by a space, and you must enclose the entire value in
quotes (because of the embedded space). If only a time is provided, the
file's current date will be preserved (and vice
versa). | ||||||||||||||||
|
|
now |
Sets the creation timestamp to the current date and
time. | ||||||||||||||||
|
|
modified |
Copies the last modified timestamp of the file. Example: SetAttr CREATED=modified | ||||||||||||||||
|
|
taken |
For image files, copies the Date Taken timestamp. If the file
doesn't have an EXIF tag the creation timestamp won't be
changed. Example: SetAttr CREATED=taken | ||||||||||||||||
|
|
digitized |
For image files, copies the Date Digitized timestamp. If the
file doesn't have an EXIF tag the creation timestamp won't be
changed. Example: SetAttr CREATED=digitized | ||||||||||||||||
|
|
parent |
Copies the creation timestamp from the parent folder. Example: SetAttr CREATED=parent | ||||||||||||||||
|
|
doccreated |
For document files, copies the Document Created timestamp. If
the file doesn't have this timestamp in its metadata the creation
timestamp won't be changed. Example: SetAttr CREATED=doccreated | ||||||||||||||||
|
|
docedited |
For document files, copies the Document Last
Edited timestamp. If the file doesn't have this timestamp in its
metadata the creation timestamp won't be changed. Example: SetAttr CREATED=docedited | ||||||||||||||||
|
|
docsaved |
For document files, copies the Document Last Saved timestamp.
If the file doesn't have this timestamp in its metadata the creation
timestamp won't be changed. Example: SetAttr CREATED=docsaved | ||||||||||||||||
DEHYDRATE |
/S |
(no value) |
For cloud files on Windows 10 and above, this command "dehydrates" the
file (removes local data and replaces it with a placeholder). This is
equivalent to the "Free up space" context menu command that OneDrive
adds. Example: SetAttr DEHYDRATE | ||||||||||||||||
DESCRIPTION |
/O |
(no value) |
Displays the Set Description dialog,
which lets you assign your own description string to selected files and
folders. | ||||||||||||||||
|
|
<description> |
Sets the description for selected files and folders to the specified
string. | ||||||||||||||||
FILE |
/M |
<filename>, ... |
Specifies the name of the file or files to modify. If you don't provide
this argument the command operates on all selected items in the source
Lister. This is the default argument for the SetAttr
command - you don't need to specify the FILE
keyword. | ||||||||||||||||
FILTER |
/K |
<filter> |
Applies the specified filter to the contents of selected folders. This
must have previously been created from the File Operations / Filters page in
Preferences. You can also directly specify a simple wildcard
pattern | ||||||||||||||||
META |
/O/M |
(no value) |
Displays the Set Metadata dialog,
which lets you modify the metadata for selected files and
folders. | ||||||||||||||||
|
|
keyword:<value>, ... |
Sets the specified metadata fields to the supplied values. Changes
are made (where applicable) to all selected files. | ||||||||||||||||
MODIFIED |
/K |
<date/time> |
Sets the last modified timestamp for selected files and folders. The value for this argument can be given as either a date only, a time only, or a date and time. The accepted formats for the date string are YYYYMMDD or YYYY-MM-DD, and the time string must be in the format HH:MM:SS. If you specify a time as well as a date the time must come after the
date, separated by a space, and you must enclose the entire value in
quotes (because of the embedded space). If only a time is provided, the
file's current date will be preserved (and vice
versa). | ||||||||||||||||
|
|
now |
Sets the last modified timestamp to the current date and
time. | ||||||||||||||||
|
|
created |
Copies the creation timestamp of the file. Example: SetAttr MODIFIED=created | ||||||||||||||||
|
|
taken |
For image files, copies the Date Taken timestamp. If the file
doesn't have an EXIF tag the last modified timestamp won't be
changed. Example: SetAttr MODIFIED=taken | ||||||||||||||||
|
|
digitized |
For image files, copies the Date Digitized timestamp. If the
file doesn't have an EXIF tag the last modified timestamp won't be
changed. Example: SetAttr MODIFIED=digitized | ||||||||||||||||
|
|
parent |
Copies the last modified timestamp from the parent
folder. Example: SetAttr MODIFIED=parent | ||||||||||||||||
|
|
doccreated |
For document files, copies the Document Created timestamp. If
the file doesn't have this timestamp in its metadata the last modified
timestamp won't be changed. Example: SetAttr MODIFIED=doccreated | ||||||||||||||||
|
|
docedited |
For document files, copies the Document Last
Edited timestamp. If the file doesn't have this timestamp in its
metadata the last modified timestamp won't be changed. Example: SetAttr MODIFIED=docedited | ||||||||||||||||
|
|
docsaved |
For document files, copies the Document Last Saved timestamp.
If the file doesn't have this timestamp in its metadata the last modified
timestamp won't be changed. Example: SetAttr MODIFIED=docsaved | ||||||||||||||||
PIN |
/O |
(no value) |
For cloud files on Windows 10 and above, this command toggles the
"pinned" status of the file on and off. This is equivalent to the "Always
keep on this device" context menu command that OneDrive adds. When a file
is "pinned", it's always kept on the device. When it's "unpinned" it may
or may not be kept locally. Example: SetAttr PIN | ||||||||||||||||
|
|
yes |
Sets the pinned state on selected cloud files. Example: SetAttr PIN=yes | ||||||||||||||||
|
|
no |
Clears the pinned state on selected cloud files. Example: SetAttr PIN=no | ||||||||||||||||
RECURSE |
/S |
(no value) |
Changes made by this command will be recursively applied to files
within selected folders. This does not affect the META
argument - only attributes, timestamps and descriptions can be applied
recursively. | ||||||||||||||||
SETATTR |
/K |
<attributes> |
Sets the specified attributes for selected files and folders. The
specified attributes will be turned on, but other attributes will be
untouched. See the description of the ATTR argument for a
list of attribute values. | ||||||||||||||||
SETDESCRIPTION |
/O |
(no value) |
Clears the description for selected files and
folders. | ||||||||||||||||
|
|
<description> |
Sets the description for selected files and folders to the specified
string. | ||||||||||||||||
TOGGLEATTR |
/K |
<attributes> |
Toggles (inverts) the state of the specified attributes. If each
attribute specified is currently set it will be cleared, and vice versa.
Attributes that aren't specified will be unaffected. See the description
of the ATTR argument for a list of attribute
values. | ||||||||||||||||
ZIPCOMMENT |
/S |
(no value) |
Lets you edit the internal Zip comment when viewing the contents of a Zip
archive. The comment is stored inside the Zip file and can be displayed by
other Zip tools. |