Maybe you can better check for this string "PKWARE Data Compression Library" instead of for "ONTRACK".
Both files contain the "ONTRACK" string:FJ_DG_945_DOS_Floppy.exe: MS-DOS executable, NE for MS Windows 3.x ==> SZDD compressed files FJ_DM_952_DOS_Floppy.exe: MS-DOS executable, NE for MS Windows 3.x ==> contains "[b]PKWARE Data Compression Library[/b]" string and can be extracted with dynamite
NO, the idea is to know that it is an ONTRACK file, but (yet) of an unsupported format, this is what the batch should hopefully provide. (when run)
That depends.zip can repair a WinImage SFX archive in one step (directly from SFX exe to valid zip file), at least in the linux version I have. Extracting the corrupt zip file from the executable with dsfo, isn't really needed.
I like to see things as half full glass:
http://en.wikipedia....ty_or_half_full
DSFO does NOT extract a "corrupt" .zip file , it extracts a "valid" .imz file...
As-is the batch provides THREE files for each WinimageSfx:
- a valid .imz
- a valid .zip file (the above "fixed")
- a valid .ima file
dsfo %SourceSfx% %PK% 0 .\%TargetDir%\%IMA_name%.imz ::Option 1 - Fix the .imz so that it becomes a valid .zip file that can be opened by 7-zip also zip -FF --out .\%TargetDir%\%IMA_name%.zip .\%TargetDir%\%IMA_name%.imz ::Option 2 - Simply Unzip the image with unzip unzip .\%TargetDir%\%IMA_name%.zip -d .\%TargetDir%\
If the target is a .ima, one can maybe run *some* version of *unzip* on the .imz directly and need not zip at all, or, as you suggested "fix" the Sfx to zip and then unzip it, it's all about freedom to choose the solution it's better suited.
The strange thing is that if you use the:
unzip.exe (the one inside ftp://ftp.info-zip.org/pub/infozip/win32/unz552xn.exe )
you get (example):
BUT:unzip -t MemScope-110.imz
Archive: MemScope-110.imz
M2K MemScope 1.10
Compliments of Micro 2000 (M2K)
www.micro2000.com
(800) 864-8008 (818) 547-0125
file #1: bad zipfile offset (lseek): 90112
At least one error was detected in MemScope-110.imz.
unzip -v MemScope-110.imz
Archive: MemScope-110.imz
M2K MemScope 1.10
Compliments of Micro 2000 (M2K)
www.micro2000.com
(800) 864-8008 (818) 547-0125
Length Method Size Ratio Date Time CRC-32 Name
-------- ------ ------- ----- ---- ---- ------ ----
1474560 Defl:X 60222 96% 14/04/06 09:31 b3ed4b23 MemScope-110.IMA
-------- ------- --- -------
1474560 60222 96% 1 file
So, it shoudn't be such a "horrible" corruption.....
I also find a "curious" choice that the developers decided to add the fixing capabilities to the zip program (which is normally used by those who CREATE the file) and NOT to the unzip one (which is normally used by those that RECEIVE the file - possibly corrupted), but I guess it's just me...
It would be even nicer if someone would actually build the new version and provide the compiled .exe.It might be nice to add the official site for the dynamite package too (just in case someone want to build a newer version): http://sourceforge.n...ts/synce/files/
Sure , though I guess that people, knowing that is an Alpha 0.01 should:Wouldn't it be advisable to check if all needed programs can be found (for people who initially don't read the comments in your batch file)?
- read the batch
- run it as SfxAlyze.cmd /? the first time
- NOT use it unless they already know where thaeir towel is...
Yep.Note: comments based on reading your batch file, not executing/trying it
Wonko