tree | clip -- Should also work in cmd too if that's a restriction. It looks
like subfolders and not filenames is the default. There's a little more
information here:
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/tree
Best,
Ross
Apologies, you wanted *just* folder and subfolder names? Try the following
Powershell command instead and paste into a word processor or spreadsheet:
tree|clip
This will produce some question marks which you can delete via find-replace
or can use to figure out subfolder relationships from a sprea
To simplify the Powershell option even further, the following command
gathers all the files in the current folder and its subfolders into a list,
and puts the result directly into the clipboard, so you can just paste into
your word processor immediately after running it:
get-childitem -Recurse -Na
That's what I was thinking as well. The example I worked with was:
PS C:\Users\Will> Get-ChildItem -Recurse test | ?{ $_.PSIsContainer } |
Select-Object FullName
FullName
C:\Users\Will\test\bazinga
C:\Users\Will\test\hamdinger
C:\Users\Will\test\superwhammy
C:\Users\Will\test\hamdinger\m
Not exactly a DOS command, but the more powerful Powershell command will get
what you asked, I think:
get-childitem -recurse -directory -path 'c:\folder name' -name
Here is the full documentation:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-childitem?