Get-ChildItem -Recurse | Where-Object { $_.LastWriteTime -ge (get-date).AddHours(-24) -and $_.FullName -like „f:\go2005\*.c*“ } | ForEach-Object{$oldname = $_.Fullname; $newname = $($_.FullName).replace(‚F:‘,’F:\svn\f‘); New-Item -ItemType File -Path $newname -Force; Copy-Item $oldname $newname;}
Get-ChildItem -Recurse | Where-Object { $_.LastWriteTime -ge (get-date).AddMonths(-10) -and $_.FullName -like „S:\go2005\application\*.cfm“ } | ForEach-Object{$oldname = $_.Fullname; $newname = $($_.FullName).replace(‚S:‘,’D:\Users\Frick\Documents\sw0052sync\server\f‘); New-Item -ItemType File -Path $newname -Force; Copy-Item $oldname $newname;}
Get-ChildItem -Recurse | Where-Object { $_.LastWriteTime -ge (get-date).AddMonths(-10) -and $_.FullName -like „S:\go2005\application\*.cfc“ } | ForEach-Object{$oldname = $_.Fullname; $newname = $($_.FullName).replace(‚S:‘,’D:\Users\Frick\Documents\sw0052sync\server\f‘); New-Item -ItemType File -Path $newname -Force; Copy-Item $oldname $newname;}