添加了脚本Libclean.ps1用来删除所有的临时文件
经过一场严重的AI滥用事故后得到的东西
This commit is contained in:
32
Libclean.ps1
Normal file
32
Libclean.ps1
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# DeleteSpecificLogs.ps1
|
||||||
|
|
||||||
|
# 定义要搜索的起始目录,这里使用脚本所在的目录
|
||||||
|
$startDirectory = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||||
|
|
||||||
|
# 递归地搜索指定目录及其子目录,并删除匹配的文件
|
||||||
|
Get-ChildItem -Path $startDirectory -File -Recurse |
|
||||||
|
Where-Object { $_.Name -match '.*\.log' } |
|
||||||
|
Remove-Item -Force -Verbose
|
||||||
|
|
||||||
|
# 递归地搜索指定目录及其子目录,并删除匹配的文件
|
||||||
|
Get-ChildItem -Path $startDirectory -File -Recurse |
|
||||||
|
Where-Object { $_.Name -match '.*\.log,[0-9]+$' } |
|
||||||
|
Remove-Item -Force -Verbose
|
||||||
|
|
||||||
|
# 递归地搜索指定目录及其子目录,并删除匹配的文件
|
||||||
|
Get-ChildItem -Path $startDirectory -File -Recurse |
|
||||||
|
Where-Object { $_.Name -match '.*\.jrl' } |
|
||||||
|
Remove-Item -Force -Verbose
|
||||||
|
|
||||||
|
# 递归地搜索指定目录及其子目录,并删除匹配的文件
|
||||||
|
Get-ChildItem -Path $startDirectory -File -Recurse |
|
||||||
|
Where-Object { $_.Name -match '.*\.jrl,[0-9]+$' } |
|
||||||
|
Remove-Item -Force -Verbose
|
||||||
|
|
||||||
|
# 递归地搜索指定目录及其子目录,并删除匹配的文件
|
||||||
|
Get-ChildItem -Path $startDirectory -File -Recurse |
|
||||||
|
Where-Object { $_.Name -match '.*\.tag' } |
|
||||||
|
Remove-Item -Force -Verbose
|
||||||
|
|
||||||
|
# 输出完成信息
|
||||||
|
Write-Host "删除特定格式的日志文件完成。"
|
||||||
Binary file not shown.
BIN
other/type-c.dra
BIN
other/type-c.dra
Binary file not shown.
BIN
other/type-c.psm
BIN
other/type-c.psm
Binary file not shown.
@@ -1,17 +0,0 @@
|
|||||||
\t (00:00:04) allegro 17.4 S035 Windows SPB 64-bit Edition
|
|
||||||
\t (00:00:04) Journal start - Tue Mar 12 21:17:28 2024
|
|
||||||
\t (00:00:04) Host=LAPTOP-XEROLYSK User=XerolySkinner Pid=844 CPUs=12
|
|
||||||
\t (00:00:04) CmdLine= d:\software\cadence\spb_17.4\tools\bin\allegro.exe D:\workspace\GitHub\pcb_lib\smc\smd_5032.dra
|
|
||||||
\t (00:00:04)
|
|
||||||
(00:00:04) Loading axlcore.cxt
|
|
||||||
\t (00:00:07) Opening existing design...
|
|
||||||
\i (00:00:07) QtSignal SPBFoldDockArea FoldAreaTabWidget currentChanged "smd_5032"
|
|
||||||
\d (00:00:07) Design opened: D:/workspace/GitHub/pcb_lib/smc/smd_5032.dra
|
|
||||||
\i (00:00:07) trapsize 311
|
|
||||||
\i (00:00:08) trapsize 319
|
|
||||||
\i (00:00:08) trapsize 311
|
|
||||||
\i (00:00:08) trapsize 360
|
|
||||||
\i (00:00:08) trapsize 370
|
|
||||||
\i (00:00:09) generaledit
|
|
||||||
\i (00:00:16) exit
|
|
||||||
\t (00:00:16) Journal end - Tue Mar 12 21:17:40 2024
|
|
||||||
Reference in New Issue
Block a user