I am trying to find a way to record all the details about my files on my server, as I have discovered that when I run my media files through Handbrake, they are losing they creation date, last used etc.
so I have hunted around and found this script that records the information I would like, but I am having issues working out how to get it to go deeper into the folder structure and record each file. cos at the moment all it does is list the root folders.
my folder structure looks like this
media \ year \ locations \ Files
I hope that someone can help me with this little problem.
# OldTime.ps1 - Start
. .\OldTime-record.ps1
for($i = 0; $i -lt $file.count; $i++) {
write-output "$($file[$i])"
write-output "$($time[$i])"
Set-ItemProperty -Path $($file[$i]) -Name CreationTimeUTC -Value $($time[$i])
Set-ItemProperty -Path $($file[$i]) -Name LastWriteTime -Value $($time[$i]) }
# OldTime.ps1 - End