首页
首页 » 文件管理 » mattrib

mattrib

mattrib
功能说明:变更或显示MS-DOS文件的属性。 
语  法:mattrib [+/-][ahrs][-/X][文件] 或 mattrib [-/X][文件] 
补充说明:mattrib为mtools工具指令,模拟MS-DOS的attrib指令,可变更MS-DOS文件的属性。 
参  数:
 +/-  "+"代表开启指定的文件属性。"-"代表关闭指定的文件属性。 
 a  备份属性。使备份程序可用来判断文件是否已经备份过。 
 h  隐藏属性。 
 r  只读属性。 
 s  系统属性。 
 -/  列出指定目录及子目录下所有文件的属性。 
 -X  显示文件属性时,中间不输入空格。

mattrib

mattrib [options] filenames

Change attributes of MS-DOS files. See mtools for more information.

Attributes

To set an attribute, use one of the following letters preceded by a + (to turn the attribute on) or - (to turn it off):

a

Archive; mark the file as a new file that should be archived by backup programs.

r

Read-only.

s

System; files with this attribute are marked as operating system files.

h

Hide this file when displaying directory contents with DIR.

Options

-/

When listing attributes, descend into all subdirectories recursively.

-X

Concise output.

-p

Display commands for mformat that can reproduce the current attributes and settings for a given disk.