Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Computer Hope forum e-mail issues and down time
0 Members and 1 Guest are viewing this topic.
@echo offfor /f %%i in ('dir <YourFolderName> /ad /s /b') do ( for /f %%j in ('dir %%i /w ^| find /i "file(s)"') do ( if %%j GTR 0 echo %%i >> <YourFileName> ))
Get-ChildItem <YourFolderName> -Recurse -Directory | Where-Object { $_.GetFiles().Count -gt 0 } | Select-Object Fullname -ExpandProperty Fullname | Out-File -FilePath <YourFileName>