Re: [CODE4LIB] List Names - sub-folders names

2022-06-09 Thread ross-spencer
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

Re: [CODE4LIB] List Names - sub-folders names

2022-06-09 Thread Dan Johnson
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

Re: [CODE4LIB] List Names - sub-folders names

2022-06-09 Thread Dan Johnson
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

Re: [CODE4LIB] List Names - sub-folders names

2022-06-09 Thread Bill
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

Re: [CODE4LIB] List Names - sub-folders names

2022-06-09 Thread Zhang, Bin
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?