Yes, the DIR command is the easiest way since you don't have to download anything.
As with all Windows commands, it has built-in help using the /? option:
The options you want are /a (for attribute) and then d. Then you want to not display the date, time, <DIR> so use the /b option
Combine that with redirecting this to a file as AETAaAS as already said:
Code:
DIR/ad/b >%USERPROFILE%\DESKTOP\Output.txt
The %USERPROFILE%\DESKTOP bit should place your output to on your desktop (provided you haven't moved the location of the desktop) using the environmental variable %USERPROFILE%.
RANT: for some reason Microsoft never created an environmental variable for the Desktop despite it being a very important location for users; logically that should have been done back when Windows95 came out.
Alternatively you could install something like Agent Ransack:
https://mythicsoft.com/agentransack
and use that to search in your folder (turn off subfolders) and go to the report pane, select
Tabulated - CSV and save it and open it Excel etc. As it put everything in columns in the spreadsheet you can easily delete the headers and surplus stuff, then use Excel to sort by the column containing the Type and delete any rows which aren't of type File Folder