Output of tree in command prompt

I was hoping to be able to use the tree /F /A > "desktop"\file.txt command to output only text files. Currently as is, it outputs every file extension. Does anyone know of an easy way to do