Last active
November 10, 2020 11:22
-
-
Save jigi-33/c5f72dd6c52839d852a70b547696ef6b to your computer and use it in GitHub Desktop.
Создание архивов tar и bzip2 в win*, як в linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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