I am looking for a way to change the date modified of a file.
I have copied a file into a new folder and I have the date modified of the original file in a variable $DateModified
($DateModified) = (stat ($file1) )[9];
I now wish to change the modified date for $file2 to $DateModified.
I have copied a file into a new folder and I have the date modified of the original file in a variable $DateModified
($DateModified) = (stat ($file1) )[9];
I now wish to change the modified date for $file2 to $DateModified.