1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee
tools/hotband/pack.bat

40 lines
1012 B
Batchfile
Raw Normal View History

2022-10-15 21:20:07 +08:00
set f_year=2022
set f_month=10
ren data data_for_backup
cd ./data_for_backup
cd ./bilibili-hotband
del /f /s/q latest.json
cd ./final/%f_year%/%f_month%
2022-10-26 20:41:56 +08:00
for /d %%i in (*) do ( "C:\Users\Administrator\Desktop\7-Zip<69><70><EFBFBD><EFBFBD>ɫ<EFBFBD>棩\7z.exe" a "%%~ni.zip" "%%i" -sdel )
2022-10-15 21:20:07 +08:00
cd ../../../
cd ./origin/%f_year%/%f_month%
2022-10-26 20:41:56 +08:00
for /d %%i in (*) do ( "C:\Users\Administrator\Desktop\7-Zip<69><70><EFBFBD><EFBFBD>ɫ<EFBFBD>棩\7z.exe" a "%%~ni.zip" "%%i" -sdel )
2022-10-15 21:20:07 +08:00
cd ../../../
cd ../
cd ./bilibili-rank
del /f /s/q latest.json
cd ./origin/%f_year%/%f_month%
2022-10-26 20:41:56 +08:00
for /d %%i in (*) do ( "C:\Users\Administrator\Desktop\7-Zip<69><70><EFBFBD><EFBFBD>ɫ<EFBFBD>棩\7z.exe" a "%%~ni.zip" "%%i" -sdel )
2022-10-15 21:20:07 +08:00
cd ../../../
cd ../
cd ./weibo-hotband
del /f /s/q latest.json
cd ./final/%f_year%/%f_month%
2022-10-26 20:41:56 +08:00
for /d %%i in (*) do ( "C:\Users\Administrator\Desktop\7-Zip<69><70><EFBFBD><EFBFBD>ɫ<EFBFBD>棩\7z.exe" a "%%~ni.zip" "%%i" -sdel )
2022-10-15 21:20:07 +08:00
cd ../../../
2022-10-26 20:47:15 +08:00
cd ./origin/%f_year%/%f_month%
2022-10-26 20:41:56 +08:00
for /d %%i in (*) do ( "C:\Users\Administrator\Desktop\7-Zip<69><70><EFBFBD><EFBFBD>ɫ<EFBFBD>棩\7z.exe" a "%%~ni.zip" "%%i" -sdel )
2022-10-15 21:20:07 +08:00
cd ../../../
cd ../../
pause