Skip to content

Instantly share code, notes, and snippets.

@whacked
Last active August 29, 2015 14:16
Show Gist options
  • Save whacked/c93a3eee730e8b897eb7 to your computer and use it in GitHub Desktop.
Save whacked/c93a3eee730e8b897eb7 to your computer and use it in GitHub Desktop.
date >> OUT.txt
$files = Get-ChildItem "C:\Users\Public\Memrise\*.txt"
for ($i=0; $i -lt $files.Count; $i++) {
Add-Content -Value "==================" -Path OUT.txt
Add-Content -Value $files[$i].FullName -Path OUT.txt
Add-Content -Value "CREATION" -Path OUT.txt
Add-Content -Value $files[$i].CreationTime -Path OUT.txt
Add-Content -Value "LASTACCESS" -Path OUT.txt
Add-Content -Value $files[$i].LastAccessTime -Path OUT.txt
Add-Content -Value "LASTWRITE" -Path OUT.txt
Add-Content -Value $files[$i].LastWriteTime -Path OUT.txt
Add-Content -Value "------------------" -Path OUT.txt
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment