Use at a workstation to
SYS:PUBLIC\FLAG.EXE path [[+ | -] attribute...] [/option...] [/? | /VER]
Parameter | Use to |
---|---|
(no parameter) |
If you type FLAG with no parameters, the attribute status of all the files in the current directory appears. |
path |
Specify the path to the file or directory whose attributes or search modes you want to modify. |
+ | - |
Add attributes to a file or directory with the + (plus). Remove attributes from a file or directory with the - (minus). If neither + nor - is used, the attributes will be assigned to the file/directory as specified. If you add and remove attributes in the same command, group all + (plus) attributes together and all - (minus) attributes together. |
attribute |
Specify one or more file or directory attributes. See Directory Attributes and File Attributes. |
/option |
Replace option with any available option. See General FLAG Options. |
/? |
View online help. All other parameters are ignored when /? is used. |
/VER |
View the version number of the utility and the list of files it uses to execute. All other parameters are ignored when /VER is used. |
NOTE: For help with tasks, press F1 in the utility.
For attributes that can be applied to directories, see Directory Attributes.
For attributes that can be applied to files, see File Attributes.
Option | Use to |
---|---|
/NAME | GROUP = name |
Change the owner of a file or directory. |
/D |
View details about a file or directory. |
/DO |
View or modify only directories in the specified path. |
/FO |
View or modify only files in the specified path. |
/OWNER=name |
View all files or directories owned by a user. |
/M=mode |
Modify search modes of executable files. See Search Modes for Executable Files. |
/S |
Search the subdirectory in the specified path and any subdirectories below that level. |
/C |
Scroll continuously through output. |
IMPORTANT: The syntax is /M=mode. Replace mode with a mode number from the following table.
NOTE: Status flags show attribute information for a file or directory. You can't change these flags.
Status | Indicates |
---|---|
Cc (Can't Compress) |
The file can't be compressed because of limited space savings. |
Co (Compressed) |
The file has been compressed. |
M (Migrated) |
The file has been migrated. |
FLAG *.* +R W Ic -Di A
FLAG SYS:\COURSE\WINTER\STUDENTS
FLAG G:*.* H /FO
FLAG *.* /M=7
FLAG *.* RW /M=1