Skip to content

Instantly share code, notes, and snippets.

@MagicAndi
Created March 2, 2017 16:08
Show Gist options
  • Save MagicAndi/3d5f1af0153e029fba89fac9f626c94b to your computer and use it in GitHub Desktop.
Save MagicAndi/3d5f1af0153e029fba89fac9f626c94b to your computer and use it in GitHub Desktop.
One-liner script that lists all file paths in a specified directory
Get-ChildItem "C:\Temp\IIS Logs" -recurse | where {$_.extension -eq ".log"} | % { Write-Host $_.FullName }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment