Good day,

I use a Panasonic camcorder for recording videos and compress the \*.AVCHD files to \*.mp4 files using HANDBRAKE. For archiving purposes, I need to copy the original file time stamps (creation date and time) to the encoded \*.mp4 files. \*.AVCHD files are located in folder test1 and \*.mp4 files in folder test2. The files names are equal except the file ending.

I tried to modify this ([how to use powershell to copy file and retain original timestamp](https://stackoverflow.com/questions/21593625/how-to-use-powershell-to-copy-file-and-retain-original-timestamp)
) solution to my needs but failed: 

```
$AVCHD = 'test1'
$MP4 = 'test2'

$files = gci $AVCHD | % {$_.Name}

ForEach ($AVCHD_file in $files) {
  $MP4_file.Name = $AVCHD_file.BaseName + ".mp4"  
  $MP4_file.CreationTime = $AVCHD_file.CreationTime
  $MP4_file.LastAccessTime = $AVCHD_file.LastAccessTime
  $MP4_file.LastWriteTime = $AVCHD_file.LastWriteTime
}

```

Powershell complains that the file properties can not be found. What would I have to do next?

Thank you for your help,
Christian