fatti unfile batch con

dir > text.txt
print text.txt


o qualcosa del genere


ciao