Skip to content

Instantly share code, notes, and snippets.

@JohnL4
Created October 24, 2018 21:07
Show Gist options
  • Save JohnL4/63c2afaf721cc29c23565df6f259b16c to your computer and use it in GitHub Desktop.
Save JohnL4/63c2afaf721cc29c23565df6f259b16c to your computer and use it in GitHub Desktop.
ls $src | ? {$_.LastWriteTime -ge (Get-Date).AddMinutes( -5)} | cp -dest $dest -for -pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment