Skip to content

Instantly share code, notes, and snippets.

@Drunkar
Created July 12, 2022 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Drunkar/4112dccbff200bbf1542a5ca0eeb14e7 to your computer and use it in GitHub Desktop.
Save Drunkar/4112dccbff200bbf1542a5ca0eeb14e7 to your computer and use it in GitHub Desktop.
このファイルが置かれたフォルダにある全てのフォルダを7zipを使ってzip化する
cd /D "%~dp0"
for /D %%G in ("*.*") do (
echo %%~nxG
"C:\Program Files\7-Zip\7z.exe" a "%%~nxG.zip" "%%~nxG"
)
cmd /k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment