File: zzipself.bat

package info (click to toggle)
zziplib 0.13.56-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,760 kB
  • ctags: 2,135
  • sloc: sh: 12,147; ansic: 7,392; perl: 2,826; python: 2,190; makefile: 968; sed: 44
file content (18 lines) | stat: -rw-r--r-- 672 bytes parent folder | download | duplicates (24)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@echo off
rem DOS pkzip.exe does not work under WinXP !
rem instead using infozip zip.exe

IF EXIST zzipselftest%1.zip del zzipselftest%1.zip
echo zip -0 zzipselftest%1.zip zzipself%1.exe 
     zip -0 zzipselftest%1.zip zzipself%1.exe
echo zip -9 zzipselftest%1.zip zzipself.txt
     zip -9 zzipselftest%1.zip zzipself.txt
echo zzipsetstub%1.exe zzipselftest%1.zip zzipself%1.exe
     zzipsetstub%1.exe zzipselftest%1.zip zzipself%1.exe
echo  rename zzipselftest%1.zip zzipselftest%1.exe
IF EXIST zzipselftest%1.exe del zzipselftest%1.exe
      ren    zzipselftest%1.zip zzipselftest%1.exe

REM testrun:
echo now testing zzipselftest%1.exe
zzipselftest%1.exe zzipself.txt