that is to CREATE directories.
i interpreted the question as, how do you make a LIST of directories
in the command prompt:
dir /ad /b >listing.txt
/ad specifies directories only, /b prints out bare info, >listing.txt saves it into that file
dir /? for more options