get-childitem "Q:\Data\" -recurse | Where-Object { $_.PSIsContainer } | Where-Object { $_.GetFiles().Count -eq 0 } | Where-Object { $_.GetDirectories().Count -eq 0 } | ForEach-Object { $_.FullName } | Out-File -FilePath C:\Users\user\Desktop\results.txt
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter