I am trying to list in 3 commands:
-All full path subfolders (immediate subfolders) on a folder
-All full path files on a folder
-All full path files and (immediate subfolders) on a folder
Drill down not required.
command should output a list.txt in %cd% folder
I tried for second requirement this:
for /d %%a in ("%CD%\*") do echo %%~fa
but it doesn't work.
Batch and Powershell approaches are more than welcome.
Thank you in advance for your help.