PowerShell Copy folder and file

$Build=Get-ChildItem \\folder and files path;

$LatestBuild='\\folder and files path\'+$Build[$Build.Count-1].Name

Write-Host Copying...

$LatestBuild

Copy-Item $LatestBuild \\SavePath -recures -force write-host Done

start -sleep -s 2

posted @ 2012-06-14 18:07  qqliukk  阅读(196)  评论(0编辑  收藏  举报