This small utility helps you to list all files inside your drive or folder. If you want to create a list of all files with directory structure and you have lots of files then it will take so much time. But by using this command you can list within seconds.
Command for displays list of files and subdirectories in a directory.
DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4]
|[drive:][path][filename]||Specifies drive, directory, and/or files to list.|
|/A||Displays files with specified attributes.|
|/B||Uses bare format (no heading information or summary).|
|/C||Display the thousand separator in file sizes. This is the default. Use /-C to disable display of separator.|
|/D||Same as wide but files are list sorted by column.|
|/N||New long list format where filenames are on the far right.|
|/O||List by files in sorted order.|
|/P||Pauses after each screenful of information.|
|/Q||Display the owner of the file.|
|/R||Display alternate data streams of the file.|
|/S||Displays files in specified directory and all subdirectories.|
|/T||Controls which time field displayed or used for sorting|
|/W||Uses wide list format.|
|/X||This displays the short names generated for non-8dot3 file names. The format is that of /N with the short name inserted before the long name. If no short name is present, blanks are displayed in its place.|
|/4||Displays four-digit years|
If you need the list without all the header/footer information:
dir /s /b
If you need the list without all the header/footer information and save into file:
dir /s /b>output.csv
You can create your own custom commands using this table.
Note : Please comment on question section for more commands.