对封装进行了第一次痛苦的基本标准化

This commit is contained in:
2024-03-17 01:53:28 +08:00
parent c0f690bae3
commit 255ff882f5
97 changed files with 28012 additions and 80 deletions

View File

@@ -27,6 +27,16 @@ Remove-Item -Force -Verbose
Get-ChildItem -Path $startDirectory -File -Recurse |
Where-Object { $_.Name -match '.*\.tag' } |
Remove-Item -Force -Verbose
# 递归地搜索指定目录及其子目录,并删除匹配的文件
Get-ChildItem -Path $startDirectory -File -Recurse |
Where-Object { $_.Name -match '.*\.rpt' } |
Remove-Item -Force -Verbose
# 递归地搜索指定目录及其子目录,并删除匹配的文件
Get-ChildItem -Path $startDirectory -File -Recurse |
Where-Object { $_.Name -match '.*\.rpt,[0-9]+$' } |
Remove-Item -Force -Verbose
# 输出完成信息
Write-Host "删除特定格式的日志文件完成。"