Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to index page
Thread view  Board view
nidud

E-mail

Norway,
17.02.2012, 13:25
 

The Doszip Commander version 2.24 available (Announce)

Download: https://sourceforge.net/projects/doszip/files/

Changes in 2.24 - 17 Feb 2012
- fixed memory leak in Unzip
- fixed bug in Unzip -- CRC error message
- fixed bug in File Search -- Hex string (F6)
- fixed bug in Directory Information -- missing info
- fixed bug in (missing) Command line (Alt-F9)
- fixed bug on reading .INI file above 4096 byte
- added line numbers to File Search dialog
- added formated output to File Search dialog (F10)
- added fast reading of large .ZIP files
- added fast decompression of .ZIP files

The CRC error message after decompressing large .ZIP files was a bug in the "fast compression" function implemented earlier.

By tracking down this bug a profile of the decompressing routine was made, and it turns out that most of the time was used on regular string operations in the read process.

The recursive process reads a subdirectory from the archive and decompresses the files, and then processes the subdirs. The function will allocate new file blocks on each level (max 5000 for each subdir), and this will eat all memory available and then some. To compensate for the memory usage the read process was using a small local buffer, and this adds (time) to the problem. If the archive has 100000 files, and the subdir contains one directory, 100000 files must be tested, and 99999 files are excluded.

The read function will now use a large buffer if memory is available, and most of the string operations have been inlined or optimised for speed.

Result: read time reduced to around 35%, and decompression to around 50%.

Rugxulo

Homepage

Usono,
17.02.2012, 17:08

@ nidud
 

The Doszip Commander version 2.24 available

> Download: https://sourceforge.net/projects/doszip/files/
>
> Changes in 2.24 - 17 Feb 2012

The download DZBIN224.ZIP has errors, missing CDS structure for one file??


(Fri Feb 17, 10:06 AM) /tmp/doydoy # unzip -t dzbin224.zip
Archive:  dzbin224.zip
error:  expected central file header signature not found (file #8).
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)
    testing: doszip/copying           OK
    testing: doszip/doszip.txt        OK
    testing: doszip/dz.dll            OK
    testing: doszip/dz.exe            OK
    testing: doszip/dz.ico            OK
    testing: doszip/dz.pif            OK
    testing: doszip/dz.dll/dz.exe     OK
At least one error was detected in dzbin224.zip.

nidud

E-mail

Norway,
17.02.2012, 17:54

@ Rugxulo
 

The Doszip Commander version 2.24 available

> Archive: dzbin224.zip
> error: expected central file header signature not found (file #8).

Compressed by doszip -- not a good sign :-)

I uploaded a new copy of dzbin224.zip.

Rugxulo

Homepage

Usono,
17.02.2012, 20:30

@ nidud
 

The Doszip Commander version 2.24 available

> I uploaded a new copy of dzbin224.zip.

Mirrored to iBiblio, and I updated the online "UTIL" .LSM for you.

nidud

E-mail

Norway,
01.04.2012, 15:59

@ nidud
 

The Doszip Commander version 2.28 available

Download: https://sourceforge.net/projects/doszip/files/

Changes in 2.28 - 1 Apr 2012
- fixed bug on adding (overwrite) selected files to .ZIP.

This bug will potentially destroy existing archive on updating files.
The bug was is a result of the update in version 2.24.
It includes all versions up to 2.27.

The problem is illustrated by the test done by Rugxulo above. The path-string is not cleared for the next file, and in this case the files dz.dll and dz.exe is updated.

nidud

E-mail

Norway,
07.04.2012, 12:55

@ nidud
 

The Doszip Commander version 2.29 available

Download: https://sourceforge.net/projects/doszip/files/

Changes in 2.29 - 07 Apr 2012
- fixed bug in keyboard - Russian letter 224 (0xE0) discarded

Rugxulo

Homepage

Usono,
08.04.2012, 02:13

@ nidud
 

The Doszip Commander version 2.29 available

> Download: https://sourceforge.net/projects/doszip/files/
>
> Changes in 2.29 - 07 Apr 2012
> - fixed bug in keyboard - Russian letter 224 (0xE0) discarded

Mirrored to iBiblio and updated .LSM again.

nidud

E-mail

Norway,
14.04.2012, 14:51

@ nidud
 

The Doszip Commander version 2.30 available

Download: https://sourceforge.net/projects/doszip/files/

Changes in 2.30 - 14 Apr 2012
- fixed bug in compress - data error in 1 byte files
- fixed bug in compress - error in cancel button (Esc)
- fixed bug in enter subdir on network
- fixed (some) bugs in Editor - Shift-F3: compile
- fixed bug in File Search (mask) - added quotes for "Long file names"
- added Multi Locations to File Search - A: C: "D:\My stuff" ..\sub
- added Location to History file

Doszip is now more or less depended on JWasm to compile correctly. In order to make a debug version TASM and MASM have been used. The latest changes use MASM syntax, so this exclude TASM, and using Watcom fastcall functions also exclude MASM.

JWasm provide line number debug info using the ?Zd switch which could be used by the Borland tools. This will be sufficient for writing/compiling using BC and TD. However, JWasm do not provide a full path in the .OBJ files produced, so source tracing will not work.

MASM produce a full pathname (drive included) in .OBJ files. TASM produce a relative path from the current directory. This is used by the debugger to load the source file in the IDE. The same thing applies to the error output used by the IDE to load the source file with line number.

A modified version of JWasm, including full path in .OBJ and output, is included in the dztools.zip file.

The output from a NT program loaded by a 16-bit application is another issue. Using JWasm directly in BC will fail in this regard, so a 16-bit loader (a fake TASM.EXE) is made for the BC IDE. This translate TASM syntax to JWasm syntax, executes JWasm and fixes the output stream.

Note: The TASM clone is currently hard-coded, assuming \JWASM\JWasm.exe.

nidud

E-mail

Norway,
20.05.2012, 23:57

@ nidud
 

The Doszip Commander version 2.31 available

Download: https://sourceforge.net/projects/doszip/files/

Changes in 2.31 - 20 May 2012
- fixed bug in Edit -- eternal loop
- fixed bug in Edit -- memory leak
- fixed bug in Edit -- F6 (Toggle file)
- fixed bug in Edit -- Replace
- fixed bug on reading .INI files
- removed Document from Root directory
- added open files to History -- files reopen on entry
- added Key F7 to Edit -- Save Session
- added Key F8 to Edit -- Load Session
- added Error Message handler to Edit
- added Error Message Pipe -- Creates Error Message file
- added Key Alt-F7 to Edit -- Prev Error
- added Key Alt-F8 to Edit -- Next Error
- added Keys Alt-F1..F6+F9 to Edit -- Same as Shift-F1-F9
- added EMS to Memory dialog
- added config.bat to source code

All binary tools are now included in the source code.
JWasm is updated with full path for -coff output.

A message pipe tool is added (err.exe) for WATCOM, JWasm, and Masm output. This produce a "pipe.err" used by the editor. Usage (dz.ini):

[AltF1]
asm     = err jwasm -D__c__ -X -I%doszip%\inc -Fl -Sg -D__DZ__ -zf1
[AltF2]
asm     = err jwasm -D__l__ -X -I%doszip%\inc -Fl -Sg -D__DZ__ -zf1
[AltF3]
asm     = err ml -c -D__l__ -X -I%doszip%\inc -Fl -Sg -D__DZ__ -zf1
[AltF9]
asm     = !.exe
c       = !.exe
[ShiftF1]
asm     = err jwasm -D__c__ -DDEBUG -X -I%doszip%\inc -Fl -Sg -Zd
c       = err wcc -q -d2 -mc -s -3 -ecp -zdp -zu -j -zls -I%doszip%\inc
[ShiftF2]
asm     = err jwasm -D__l__ -DDEBUG -X -I%doszip%\inc -Fl -Sg -Zd
c       = err cl -c -I%doszip%\inc -Zi
[ShiftF3]
asm     = err jwasm -D__f__ -DDEBUG -X -I%doszip%\inc -Fl -Sg -Zi
c       = err wcc386 -q -d2 -bc -bt=nt -s -I%doszip%\inc
makefile= wmake -a
[ShiftF4]
asm     = err ml -c -D__c__ -DDEBUG -X -I%doszip%\inc -Fl -Sg -Zd
[ShiftF5]
asm     = err ml -c -D__l__ -DDEBUG -X -I%doszip%\inc -Fl -Sg -Zd
[ShiftF6]
asm     = err ml -c -D__f__ -DDEBUG -X -I%doszip%\inc -Fl -Sg -Zi
[ShiftF9]
asm     = rc

[image]

nidud

E-mail

Norway,
23.05.2012, 00:03

@ nidud
 

The Doszip Commander version 2.32 available

Download: https://sourceforge.net/projects/doszip/files/

Changes in 2.32 - 22 May 2012
- missing switch -zf1 in makefile -- .ZIP functions didn't work..

nidud

E-mail

Norway,
29.05.2012, 14:45

@ nidud
 

The Doszip Commander version 2.33 available

Download: https://sourceforge.net/projects/doszip/files/

Changes in 2.33 - 29 May 2012
- fixed bug in Edit -- memory leak (hard error)
- fixed bug in FindFile -- file names > 260 character
- added Open Session to F9 -- if no open files
- added Continue Search if open file error (no message)
- added Continue Compress if open file error (error message)

Some small updates:
A memory block used by the editor was deleted.. and then used..

The recursive file-search functions (used in copy, compress, search++) exit if an error occurs opening a file. This will terminate the loop on trying to open an "access denied" file. The compress and search functions will now continue.

The Open Session function was only accessible in the Editor. This will now execute using F9 if no open files.

HTC

13.07.2012, 08:23

@ nidud
 

The Doszip Commander version 2.33 available

First, many thanks for the great work!

I've made two comments at sourceforge, so please check it.

Very important is the unpacker functions, please give some working examples of dz.ini. By using the official release of 7zDec.exe and unrar.exe(DOS).
Thanks again!

nidud

E-mail

Norway,
23.07.2012, 22:59

@ HTC
 

The Doszip Commander version 2.33 available

I looked at RAR some time ago (rar32.exe I think), but it was not possible to parse the list-output from the program. The 7ZA plugin may be modified to support 7ZDEC, assuming the command line switches are similar to 7ZA.

To read the content of the archive into a panel you either read the archive, or use a list file. The latter is used for 7-Zip by simply issue the command 7ZA ?l. The list produced by RAR is useless since it do not supply a full path of the files.

The alternate DZ.INI settings:

[Filetype]
rar=unrar <switches> <archive_name>

HTC

27.07.2012, 14:50

@ nidud
 

The Doszip Commander version 2.33 available

I'm not sure we've talked about the same unrar.exe, so here is what I've found in web:

v3.3.6(year 2004) for 32-bit DOS, with detailed syntax
http://freesoft.cyberside.net.ee/FreeSoft/arc1.htm#archivers

some newer version at: http://www.sac.sk/files.php?d=7&l=U
76. unrar38b.zip UnRAR for DOS 253056 2009-08-21 09:05:00
142. urar376d.zip UnRAR v3.70 for DOS32 130481 2007-07-02 08:05:39
143. urar378d.zip UnRAR v3.71 Beta for DOS32 130214 2007-09-10 18:31:27

and here is the free source code by Alexander L. Roshal:
http://ftp.lfs-matrix.net/pub/blfs/6.3/u/unrarsrc-3.7.8.tar.gz
as he said in license.txt of urar378d.zip
" The source code of UnRAR utility is freeware. This means:
1. All copyrights to RAR and the utility UnRAR are exclusively
owned by the author - Alexander Roshal.
2. The UnRAR sources may be used in any software to handle RAR
archives without limitations free of charge, but cannot be used
to re-create the RAR compression algorithm, which is proprietary.
Distribution of modified UnRAR sources in separate form or as a
part of other software is permitted, provided that it is clearly
stated in the documentation and source comments that the code may
not be used to develop a RAR (WinRAR) compatible archiver. "

rr

Homepage E-mail

Berlin, Germany,
27.07.2012, 21:48

@ HTC
 

The Doszip Commander version 2.33 available

> I'm not sure we've talked about the same unrar.exe, so here is what I've
> found in web:
>
> v3.3.6(year 2004) for 32-bit DOS, with detailed syntax
> http://freesoft.cyberside.net.ee/FreeSoft/arc1.htm#archivers
>
> some newer version at: http://www.sac.sk/files.php?d=7&l=U
> 76. unrar38b.zip UnRAR for DOS 253056 2009-08-21 09:05:00
> 142. urar376d.zip UnRAR v3.70 for DOS32 130481 2007-07-02 08:05:39
> 143. urar378d.zip UnRAR v3.71 Beta for DOS32 130214 2007-09-10 18:31:27

I created 'urar385b.zip' in late 2008. It can be found at http://www.bttr-software.de/ports/.

---
Forum admin

Rugxulo

Homepage

Usono,
28.07.2012, 20:02

@ rr
 

The Doszip Commander version 2.33 available

> > I'm not sure we've talked about the same unrar.exe, so here is what I've
> > found in web:
> >
> > v3.3.6(year 2004) for 32-bit DOS, with detailed syntax
> > http://freesoft.cyberside.net.ee/FreeSoft/arc1.htm#archivers
> >
> > some newer version at: http://www.sac.sk/files.php?d=7&l=U
> > 76. unrar38b.zip UnRAR for DOS 253056 2009-08-21 09:05:00
> > 142. urar376d.zip UnRAR v3.70 for DOS32 130481 2007-07-02 08:05:39
> > 143. urar378d.zip UnRAR v3.71 Beta for DOS32 130214 2007-09-10 18:31:27
>
> I created 'urar385b.zip' in late 2008. It can be found at
> http://www.bttr-software.de/ports/.

I know RAR dropped DOS support in v4, presumably for Unicode reasons. Does this mean even Unrar 4.x doesn't compile for non-Unicode targets? (Guess I should try one of these days.) Anyways, 3.x is plenty good enough, it seems.

Not sure why the license was relevant to mention here, but yeah, due to the "no RAR competitors" clause, it's not GPL friendly, which irks some people. I know Virtual Pascal had an older RAR-compatible library and utils, but I don't know if that would help here very much as it lacks support for newer (v2? v3?) codecs.

nidud

E-mail

Norway,
28.07.2012, 13:57

@ HTC
 

The Doszip Commander version 2.33 available

> I'm not sure we've talked about the same unrar.exe, so here is what I've
> found in web:
All these versions have the same list function. There are 3 methods. None of them list the contents of the archive. This means that it?s impossible to know the contents without decompressing it.

To illustrate the problem, here is a normal output (and input):
src\makefile
src\src\makefile
src\src\src\makefile

Warning: No DPMI-server FPU support

RAR 3.93   Copyright (c) 1993-2010 Alexander Roshal   15 Mar 2010
Shareware version         Type RAR -? for help

Evaluation copy. Please register.

Creating archive test.rar

Adding    src\makefile
Adding    src\src\makefile
Adding    src\src\src\makefile
Adding    src\src\src
Adding    src\src
Done

The rar(e and useless) output:

UNRAR 3.80 freeware      Copyright (c) 1993-2008 Alexander Roshal

Archive test.rar

 Name             Size   Packed Ratio  Date   Time     Attr      CRC   Meth Ver
-------------------------------------------------------------------------------
 makefile           35       53 151% 22-12-11 03:20  .....A.   672E1EA8 m3b 2.9
 makefile           39       55 141% 22-12-11 03:20  .....A.   7058FF1C m3b 2.9
 makefile           38       54 142% 22-12-11 03:20  .....A.   270DA8E1 m3b 2.9
 src                 0        0   0% 28-07-12 12:43  .D.....   00000000 m0  2.0
 src                 0        0   0% 28-07-12 12:43  .D.....   00000000 m0  2.0
-------------------------------------------------------------------------------
    5              112      162 144%

So, what is the CRC value of src\makefile ?

Someone have to rewrite the list function.

Rugxulo

Homepage

Usono,
28.07.2012, 20:07

@ nidud
 

The Doszip Commander version 2.33 available

> > I'm not sure we've talked about the same unrar.exe, so here is what I've
> > found in web:
> All these versions have the same list function. There are 3 methods. None
> of them list the contents of the archive. This means that it?s impossible
> to know the contents without decompressing it.
>
> So, what is the CRC value of src\makefile ?
>
> Someone have to rewrite the list function.

ARCLDS has RAR support, last I checked. I'm not a heavy user of RAR (almost none, esp. since I don't have a registered copy), but it seems to work, at least listing (and in fact does nothing else). It comes with .ASM src, but it's presumably easier to just use it separately than trying to integrate it into a plugin or Doszip itself.

P.S. I've not really used Doszip plugins, e.g. for .7z, so I have no idea how well they work. I need to test. Not much I can help with anyways, but I'll have to see.

nidud

E-mail

Norway,
28.07.2012, 23:51

@ Rugxulo
 

The Doszip Commander version 2.33 available


Archive List and Date Stamp 0.94.4 beta by Joe Forster/STA

Listing archive: test.rar

 Original   Packed  Ratio  Date     Time    Attr Name
--------- --------- ---- -------- -------- ----- ------------------------------
       35        53 151% 12-22-11 03:20:00 -A--- src\makefile
       39        55 141% 12-22-11 03:20:00 -A--- src\src\makefile
       38        54 142% 12-22-11 03:20:00 -A--- src\src\src\makefile
        0         0 100% 07-28-12 12:43:28 D---- src\src\src\
        0         0 100% 07-28-12 12:43:24 D---- src\src\
--------- --------- ---- -------- -------- ----- ------------------------------
      112       162 144% 07-28-12 12:43:28       3 files and 2 directories


It's an excellent tool, and it appears to come with a file manager as well?

nidud

E-mail

Norway,
27.07.2012, 14:54

@ nidud
 

The Doszip Commander version 2.35 available

Download: https://sourceforge.net/projects/doszip/files/

Changes in 2.35 - 27 Jul 2012
- fixed bug in Delete (selected files)
- fixed bug in Plugins -- didn't work..

It appears that 7ZDEC only decompress the archive to current directory?, so there is no point creating a plugin for this tool. The .INI settings will then be:

[Filetype]
rar=unrar x !.!
7z=7zdec x !.!

The plugin for 7ZA had some problems loading .TAR and .LZMA files, so this is now updated.
The README.TXT file from DZ7ZA235.ZIP:

Doszip plugin for 7ZA.EXE
Version 1.04 - 07/26/2012

<> Supported file types

          Read Copy Add  Move Del  View
   *.7z    x    x    x    x    x    x
   *.gz    x    x                   x    -tgzip
   *.bz2   x    x                   x    -tbzip2
   *.cab   x    x                   x    -tcab
   *.xz    x    x                   x    -txz
   *.tar   x    x    x    x    x    x    -ttar
   *.lzma  x    x                   x    -tlzma

<> Install

   All plugins are defined in the file DZ.INI, and it is assumed
   that the .DLL files are located in the <doszip>\DLL directory.
   A full path to another directory may be added.

   To install, simply copy the DZ7ZA.DLL file to the DLL directory.

   The plugin reads the section [7ZA] if available. You may add this
   section to change the default:

   [7ZA]
   01=7za l -y  ; Read archive
   02=7za x -y  ; F5 Copy (decompress)
   03=7za u -y  ; F5 Add  (compress)
   04=7za m -y  ; F6 Move (compress | delete)
   06=7za d -y  ; F8 Delete
   09=7za e -y  ; F3 View (copy | view | delete)

   In the section [Plugins] the <id> value (00=) is not fixed (as above).
   Use the first free number or start from [00..06].

   --<Copy and Paste this to DZ.INI>--

[Plugins]
00=0x00007A37,DZ7ZA.DLL ; .7z
01=0x00008B1F,DZ7ZA.DLL ; .gz
02=0x00005A42,DZ7ZA.DLL ; .bz2
03=0x4643534D,DZ7ZA.DLL ; .cab
04=0x587A37FD,DZ7ZA.DLL ; .xz
05=0x10000000,DZ7ZA.DLL ; .tar
06=0x20000000,DZ7ZA.DLL ; .lzma

[Filetype]
tar  = [0x10000000]
lzma = [0x20000000]

Back to index page
Thread view  Board view
22632 Postings in 2109 Threads, 402 registered users, 395 users online (0 registered, 395 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum