Chances are, you do not want a list of the folders under the C:\Windows\System32 folder.

Note: You may want to delete the FolderList.txt files from C:\Windows\System32, assuming that one was actually created. DO NOT delete anything else from that folder.

To add a method to get a Command Prompt window for a folder from Windows (File) Explorer, the following links show how to do that. Note that you may have to also change the default Open PowerShell window to Open Command Prompt window:

https://www.thewindowsclub.com/how-t...ght-click-menu

https://www.thewindowsclub.com/resto...ere-windows-10

https://www.itechtics.com/open-command-window-folder/

https://www.lifewire.com/open-comman...folder-5185505

The alternative is to use the cd command to change to the main folder that you want to get the sub-folders for.

Code:
cd \
cd Users\{your user name}\Documents\{your subfolder name 1}\{your subfolder name 2}
To change to a different drive:

Code:
D:
Where D is the drive letter you want to change to.

https://www.howtogeek.com/659411/how...on-windows-10/

https://www.techwalla.com/articles/h...-prompt-window

https://www.digitalcitizen.life/comm...asic-commands/

When the dir command is run, you will not see any output. That is re-directed to a FolderList.txt file in the main folder that you are getting the list of sub-folders for, so to open that file, use the following command after the dir command:

Code:
notepad FolderList.txt