Creating a full directory listing?

I would like to create a listing of files and folders, including subfolders, whats the easiest way to do it? I created a bat, but it doesnt seem to get subfolders
i installed aq program long ago.. i just have to right-click on a folder and click write content and i get a txt with all the info... too bad i don't remember the name of this program :p
is "tree /f" what you're talking about?
If not, try "Dir \ /b /s"

That works also, but in a different way.

Original thread: https://assemblergames.com/threads/creating-a-full-directory-listing.10731/