I am trying to print a list of the folders and sub folders of a directory to a file.
When I run dir
dir
I don't have enough reputation to comment on any answer. In one of the comments, someone has asked how to ignore the hidden folders in the list. Below is how you can do this.
dir /b /AD-H