Friday, June 12, 2009

Files Listing Command

In the Dos DIR Command is also used to list the files and folders
you can also list file and flder using several criteria such as alphabetical order, date ,size etc

/p: fills the screen with the results then pauses the screen
/w: displays the results in 5 columns
To display files according to various criteria:
/ah: displays hidden files
/ad: displays folders only
/ar: displays read-only files
/aa: displays files ready to be archived
/as: displays system files

-To display files in a required order:
/ON: sorted by name
/OS: sorted by size (ascending)
/OE: sorted by extension
/OD: sorted by date
/OG: sorted by parent folder
/OS: sorted by attribute
/s: displays the files located in a folder and all sub-folders
/b: minimal view
/l: displays results in lowercase
/v: displays additional information

No comments:

Post a Comment