I am trying to print a list of the folders and sub folders of a directory to a file.
When I run dir
dir
dir /ad /b /s will give the required answer.
dir /ad /b /s