Skip to content

Instantly share code, notes, and snippets.

@bhavjot
Created January 3, 2019 00:09
Show Gist options
  • Save bhavjot/b077665b7fa17719e629879922914fee to your computer and use it in GitHub Desktop.
Save bhavjot/b077665b7fa17719e629879922914fee to your computer and use it in GitHub Desktop.
$targetDir= "C:\data"
get-ChildItem $targetDir | select name | OUT-File "C:\log\files.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment