targetpathにある*.logを3世代だけ残すバッチファイル
-------cut here begin-------------
@echo off
for /f "skip=3" %%a in ('dir /b /o-d targetpath\*.log') do del %%a
-------cut here end-------------
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
targetpathにある*.logを3世代だけ残すバッチファイル
-------cut here begin-------------
@echo off
for /f "skip=3" %%a in ('dir /b /o-d targetpath\*.log') do del %%a
-------cut here end-------------
Register as a new user and use Qiita more conveniently
Go to list of users who liked