搜尋此網誌

2011年10月22日 星期六

EFI Shell commands -- ATTRIB(顯示或改變檔案或目錄的屬性)

Displays or changes the attributes of files or directories.

ATTRIB [+a|-a] [+s|-s] [+h|-h] [+r|-r] [file...] [directory...]


    +a|-a      - Sets or clears the 'archive' attribute
    +s|-s      - Sets or clears the 'system' attribute
    +h|-h      - Sets or clears the 'hidden' attribute
    +r|-r      - Sets or clears the 'read only' attribute
    file       - File name (wildcards are permitted)
    directory  - Directory name (wildcards are permitted)

Notes:
    1. If no attributes parameters are specified, the current attributes of
       the specified files or directories will be displayed.
    2. If no files or directories are specified, then the command applies to
       all files and sub-directories within the current directory.

Examples:
  * To display the attributes of a directory:
    fs0:\> attrib fs0:\
    attrib:D     fs0:\

  * To display the attributes of all files and sub-directories in the current
    directory:
    fs0:\> attrib *
    attrib: AS   fs0:\serial.efi
    attrib:DA   fs0:\test1
    attrib: A HR fs0:\bios.inf
    attrib: A    fs0:\VerboseHelp.txt
    attrib: AS   fs0:\IsaBus.efi

  * To add the system attribute to all files with extension '.efi':
    fs0:\> attrib +s *.efi

  * To remove the read only attribute from all files with extension '.inf':
    fs0:\> attrib -r *.inf
    attrib: A H  fs0:\bios.inf

沒有留言:

張貼留言