DIR to Sort Results

Don't miss that you can use a switch with the DIR directory command in Windows command prompt to sort files in a particular order. The switch '/O' followed by a colon followed by a particular letter for file size, file type, or something else will generate a list in a particular order. So, for example this command:

dir /O:S


. . . will sort the files in order according to their file size.



This command:

dir /O:E


. . . will sort the files by their file type.