i have a computer i want to move files from the share to only if the files on the share are different than those on the computer.
$folder1 = c:\localfolder has a file in it test.txt with a modify date of 10/22
$folder2 = \\server\serverfolder has a file in it test.txt with a modify date of 10/23
i want compare the $folder1 and $folder2 and if $folder2 item(s) are newer than $folder1 then copy them to $folder1
i'm confused on how to do this
please help thanks!