Hi!

31-Янв-2004 16:35 [EMAIL PROTECTED] (Luchezar Georgiev) wrote to FreeDOS-kernel
<[EMAIL PROTECTED]>:

LG> I tried to replace UPX with aPack 0.99b by Joergen Ibsen (a.k.a. Jibz), and
LG> thus saved 1.3 KB of compressed kernel size! Here's the trick: As DOS4GW
LG> set XUPX=dos4gw c:\bin\apack.le -x1 kernel.exe

     To find the best compression level, I use next batch (for NDOS/4DOS):

______________O\_/_________________________________\_/O______________
@echo off
if not "%1"=="@" goto main
if not "%4"=="" goto next

apack -x %2%3 %2.0
%0 @ %2 %3 1 0

:next
if "%4"=="4" goto end
apack -x%4 %2%3 %2.%4
iff [EMAIL PROTECTED] lt [EMAIL PROTECTED] then
        del %2.%5>nul
        %0 @ %2 %3 [EMAIL PROTECTED] %4
else
        del %2.%4>nul
        %0 @ %2 %3 [EMAIL PROTECTED] %5
endiff

:main
if "%1"=="" %0 *.com *.exe
for %%f in (%&) do call %0 @ [EMAIL PROTECTED] [EMAIL PROTECTED]

:end
_____________________________________________________________________
              O/~\                                 /~\O

How to run:

- to pack all files in current directory: "packall.btm *.*"
- to pack prog.exe and all .com files in current directory:
  "packall.btm prog.exe *.com"
- to pack c:\release\kernel.exe: "packall.btm c:\release\kernel.btm"

Packed files will be placed _in current directory_, with original name, and
numeric extension, which is equal to (best) method, which was used to pack
this file.




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to