Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save angelotrivelli/42a52ca4397c1be3b422cd5fedafb81a to your computer and use it in GitHub Desktop.
Save angelotrivelli/42a52ca4397c1be3b422cd5fedafb81a to your computer and use it in GitHub Desktop.
powershell, list files that match a pattern (for example *.bin) in current directory, displaying name and LastWriteTime
get-ChildItem -File -Filter "*.bin" | Select-Object Name, @{Name='LastWriteTime'; Expression={$_.LastWriteTime.ToString("yyyy-MM-dd HH:mm:ss")}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment