📜  powreshell 函数清理 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:49.056000             🧑  作者: Mango

代码示例1
function  CleanUp {
   # Delete directory content
   Get-ChildItem -Path ($PSScriptRoot + "\Files") -Recurse | ForEach-Object { $_.Delete()}
   Get-ChildItem -Path ($PSScriptRoot + "\Temp") -Recurse | ForEach-Object { $_.Delete()}
   Get-ChildItem -Path ($PSScriptRoot + "\Out") -Recurse | ForEach-Object { $_.Delete()}
}