Specifications
152 Version 2.0
specified, only the files that have all those attributes will be listed. If -a is
followed by nothing, then all files/directories are displayed, regardless of their
attributes. If -a itself is not specified, then all files except system and hidden files
are displayed.
Status Codes Returned
SHELL_SUCCESS The action was completed as requested.
SHELL_INVALID_PARAMETER One of the passed in parameters was incorrectly formatted or
its value was out of bounds.
SHELL_SECURITY_VIOLATION This function was not performed due to a security violation
SHELL_NOT_FOUND The requested file or directory was not found.
Examples
To hide files by adding the hidden or system attribute to them:
fs0:\> attrib +s +h *.efi
ASH fs0:\IsaBus.efi
ASH fs0:\IsaSerial.efi
To display all, except the files/directories with 'h' or 's' attribute:
fs0:\> ls
Directory of: fs0:\
06/18/01 09:32p 153 for.nsh
06/18/01 01:02p <DIR> 512 efi
06/18/01 01:02p <DIR> 512 test1
06/18/01 01:02p <DIR> 512 test2
06/18/01 08:04p 29 temp.txt
06/18/01 08:05p <DIR> 512 test
01/28/01 08:24p r 29 readme.txt
3 File(s) 211 bytes
4 Dir(s)
To display files with all attributes in the current directory:
fs0:\> ls -a
Directory of: fs0:\
06/18/01 09:32p 153 for.nsh
06/18/01 01:02p <DIR> 512 efi
06/18/01 01:02p <DIR> 512 test1
06/18/01 01:02p <DIR> 512 test2
06/18/01 10:59p 28,739 IsaBus.efi
06/18/01 10:59p 32,838 IsaSerial.efi
06/18/01 08:04p 29 temp.txt
06/18/01 08:05p <DIR> 512 test
01/28/01 08:24p r 29 readme.txt
5 File(s) 61,788 bytes
4 Dir(s)
To display files with read-only attributes in the current directory:










