批量删除LR运行垃圾文件

在调试LR脚本,经常产生很多log文件,可以使用如下脚本删除垃圾文件

在window下系统,新建bat文件,文件内容如下:


echo off
cls
echo.
echo.
echo  This batch file will delete the following files from every 
echo  folder and subdirectory from the folder in which it is run: 
echo.  
echo  *.idx
echo  mdrv*.log
echo  mdrv.txt
echo  options.txt
echo  *.ci
echo  combined_*.c
echo  output.txt
echo  debug.inf
echo  *.bak
echo  \result1
echo.
echo.
if exist %temp%\FilesDeleted.txt del %temp%\FilesDeleted.txt
del *.idx /s >%temp%\FilesDeleted.txt
del mdrv*.log /s >>%temp%\FilesDeleted.txt
del mdrv.txt /s >>%temp%\FilesDeleted.txt
del options.txt /s >>%temp%\FilesDeleted.txt
del *.ci /s >>%temp%\FilesDeleted.txt
del combined_*.c /s >>%temp%\FilesDeleted.txt
del output.txt /s >>%temp%\FilesDeleted.txt
del debug.inf /s >>%temp%\FilesDeleted.txt
del *.bak /s >>%temp%\FilesDeleted.txt
rd result1 /s /q
"Notepad.exe" "%temp%\FilesDeleted.txt"
del %temp%\FilesDeleted.txt





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值