pwsh fs

ploolq / 2023-05-06 / 原文

    $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