In a similar vein to Eastender, you could create a batch file called for example DirList.bat and put in it the following line
dir C:\*.* > dirout.txt
When you click on it it will execute your DOS command and list the directory into the file dirout.txt.
There are lots of Dir switches to play with, e.g. for all directories under C: you could have
C:\*.* /s > dirout.txt
Or you could try
tree c: > dirout.txt
but I think you would need to change the font in dirout.txt to Terminal to get the best out of the tree 'graphic' display.