pwsh fs

    $delPath="x:\y\z\"

    If (Test-Path $delPath){
        Remove-Item $delPath -Recurse -Force
    }

    $tpath = "u:\v\w"
    If(!(test-path -PathType container $tpath))
    {
        New-Item -ItemType Directory -Path $tpath
    }

    Copy-Item -Path "d:\data\bin\*" -Destination $tpath -Recurse -Force
posted @ 2023-05-06 18:15  fndefbwefsowpvqfx  阅读(20)  评论(0编辑  收藏  举报