If you provide the full path to the directory you can execute the dir command on that directory. Displaying file/subdirectories of a directory using its absolute/relative path : You can get the list of file/subdirectories of now only the current directory, but other directories as well. Which will display a list of subdirectories (Junction Points & Directory Symlinks as well) within the current directory. S System files I Not content indexed filesĪccording to the above list, If you want to display a list of Directories only. H Hidden files A Files ready for archiving Where attribute will be a one/combination of one of the characters from the following list D Directories R Read-only files The command would have the following syntax as follows. What this will do is it will display only those files/folders which do have the provided attributes. Displaying files/subdirectories having certain attributes : You can filter the output of dir by sending /A switch, followed by a specific attribute. We would be looking over at some of the commonly used switches of the command. This would serve the purpose for most users, but the command offers more functionality than this, By appending various switches we could modify the working of the command, to produce custom output. Which would produce an output similar to this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |