Skip to content

Instantly share code, notes, and snippets.

@jigi-33
Last active November 10, 2020 11:22
Show Gist options
  • Save jigi-33/c5f72dd6c52839d852a70b547696ef6b to your computer and use it in GitHub Desktop.
Save jigi-33/c5f72dd6c52839d852a70b547696ef6b to your computer and use it in GitHub Desktop.
Создание архивов tar и bzip2 в win*, як в linux
@echo off
cls
mkdir ..\TEMP4TAR
tar.exe -cvf ..\TEMP4TAR\%1.tar *.*
del /S /Q .\*
move ..\TEMP4TAR\%1.tar .\
rmdir /S /Q ..\TEMP4TAR
bzip2.exe -zvf9 %1.tar
REM Запуск из FAR'а:
REM tbz2-dir.cmd !
REM или: bzip2 -zvf9 !.!
REM (if we want compress a single file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment