BunBackup

【PC操作とデータ整理】BunBackupとバックアップのフォルダーをまとめて消すためのバッチファイル

BunBackup|バックアップソフト

「BunBackup」定番の高速バックアップソフト - 窓の杜

バックアップしていたフォルダーを数世代残して、古いものから消すバッチファイル

D:
cd D:\
move \Hugo-bakkkk \Hugo-bakkkkk
move \Hugo-bakkk \Hugo-bakkkk
move \Hugo-bakk \Hugo-bakkk
move \Hugo-bak \Hugo-bakk
move \Hugo \Hugo-bak
move \"copy-Hugo-bakkkk" \"copy-Hugo-bakkkkk"
move \"copy-Hugo-bakkk" \"copy-Hugo-bakkkk"
move \"copy-Hugo-bakk" \"copy-Hugo-bakkk"
move \"copy-Hugo-bak" \"copy-Hugo-bakk"
move \"copy-Hugo" \"copy-Hugo-bak"
for /F %%a in ('dir /AD /B /W *-bakkkkk') do rd /S /Q %%a
E:
cd E:\
move \Hugo-bakkkk \Hugo-bakkkkk
move \Hugo-bakkk \Hugo-bakkkk
move \Hugo-bakk \Hugo-bakkk
move \Hugo-bak \Hugo-bakk
move \Hugo \Hugo-bak
move \"copy-Hugo-bakkkk" \"copy-Hugo-bakkkkk"
move \"copy-Hugo-bakkk" \"copy-Hugo-bakkkk"
move \"copy-Hugo-bakk" \"copy-Hugo-bakkk"
move \"copy-Hugo-bak" \"copy-Hugo-bakk"
move \"copy-Hugo" \"copy-Hugo-bak"
for /F %%a in ('dir /AD /B /W *-bakkkkk') do rd /S /Q %%a
F:
cd F:\
move \Hugo-bakkkk \Hugo-bakkkkk
move \Hugo-bakkk \Hugo-bakkkk
move \Hugo-bakk \Hugo-bakkk
move \Hugo-bak \Hugo-bakk
move \Hugo \Hugo-bak
move \"copy-Hugo-bakkkk" \"copy-Hugo-bakkkkk"
move \"copy-Hugo-bakkk" \"copy-Hugo-bakkkk"
move \"copy-Hugo-bakk" \"copy-Hugo-bakkk"
move \"copy-Hugo-bak" \"copy-Hugo-bakk"
move \"copy-Hugo" \"copy-Hugo-bak"
for /F %%a in ('dir /AD /B /W *-bakkkkk') do rd /S /Q %%a
G:
cd G:\
move \Hugo-bakkkk \Hugo-bakkkkk
move \Hugo-bakkk \Hugo-bakkkk
move \Hugo-bakk \Hugo-bakkk
move \Hugo-bak \Hugo-bakk
move \Hugo \Hugo-bak
move \"copy-Hugo-bakkkk" \"copy-Hugo-bakkkkk"
move \"copy-Hugo-bakkk" \"copy-Hugo-bakkkk"
move \"copy-Hugo-bakk" \"copy-Hugo-bakkk"
move \"copy-Hugo-bak" \"copy-Hugo-bakk"
move \"copy-Hugo" \"copy-Hugo-bak"
for /F %%a in ('dir /AD /B /W *-bakkkkk') do rd /S /Q %%a
H:
cd H:\
move \Hugo-bakkkk \Hugo-bakkkkk
move \Hugo-bakkk \Hugo-bakkkk
move \Hugo-bakk \Hugo-bakkk
move \Hugo-bak \Hugo-bakk
move \Hugo \Hugo-bak
move \"copy-Hugo-bakkkk" \"copy-Hugo-bakkkkk"
move \"copy-Hugo-bakkk" \"copy-Hugo-bakkkk"
move \"copy-Hugo-bakk" \"copy-Hugo-bakkk"
move \"copy-Hugo-bak" \"copy-Hugo-bakk"
move \"copy-Hugo" \"copy-Hugo-bak"
for /F %%a in ('dir /AD /B /W *-bakkkkk') do rd /S /Q %%a