do not move item, instead copy item because acl will be kept

This commit is contained in:
Hans-Joachim Kliemeck 2015-11-27 11:32:54 +01:00
parent 1ec0c1893a
commit 9fa758d54c

View file

@ -96,7 +96,8 @@ function WriteLines($outlines, $dest, $linesep, $encodingobj, $validate) {
# Commit changes to the destination file
$cleandest = $dest.Replace("/", "\");
Move-Item $temppath $cleandest -force;
Copy-Item $temppath $cleandest -force;
Remove-Item $temppath -force;
}