DOS techiness – listing files with no extension


h1 March 8th, 2009

Listing all the files in a folder (and its subfolders) which don’t have a file extension:

DIR/B /A-D /s *.

The /B switch returns just the path and file name. If you want more information simply use this instead: DIR /A-D /s *.

And if you only want the listing for the current folder (not its subfolders) use:  DIR/B /A-D or DIR /A-D
Note that unfortunately this also returns files with extensions that DOS doesn’t recognise. This means that also listed will be files with ‘unusual’ extensions such as .jpeg (4 characters rather than 3) or .DS_Store (from Mac OS)

Comments are closed.