-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsquash.bat
More file actions
42 lines (33 loc) · 1.22 KB
/
squash.bat
File metadata and controls
42 lines (33 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
echo.
echo.
powershell -Command ^
"Write-Host ' ###### ###### ## ## ### ###### ## ## ' -ForegroundColor Yellow; ^
Write-Host ' ## ## ## ## ## ## ## ## ## ## ' -ForegroundColor Yellow; ^
Write-Host ' ##### ## ## ## ## ## ####### ##### ####### ' -ForegroundColor Yellow; ^
Write-Host ' ## ## ## ## ## ## ## ## ## ## ' -ForegroundColor Yellow; ^
Write-Host ' ###### #### ## ###### ## ## ###### ## ## ' -ForegroundColor Yellow"
echo.
echo.
powershell -Command ^
"Write-Host ' All @copyrights reserved by NFRAC ' -ForegroundColor Blue;"
echo.
echo.
if "%1"=="" goto :usage
if "%1"=="-compress" (
if "%2"=="" goto :usage
if "%3"=="" goto :usage
java --class-path "C:\Program Files\Squash" Squash -compress %2 %3
@REM java Squash -compress %cwd%\%2 %cwd%\%3
exit /b
)
if "%1"=="-decompress" (
if "%2"=="" goto :usage
java --class-path "C:\Program Files\Squash" Squash -decompress %2
@REM java Squash -decompress %cwd%%2
exit /b
)
:usage
echo Usage: squash -compress origin_path target_file_name
echo Usage: squash -decompress target_file_name.tar.sq
exit /b