Is there any way in console mode to view the contents of a windows directory?

Also if there is, is there a way to specify only .txt files or .cpp files?

Any help would ge greatly appreciated!