[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .shk to .dsk help



8-Bit Classics <nospam@8bitclassics.com> wrote:
> Ok, can the opposite be done?  I posted a message couple monthes back
> and was recommended ordering ShrinkII v1.1 from syndicomm.  Just
> received and found out that it doesn't work with DSK images.  So
> pretty much I wasted $19.  It handles SHK files, but I have a bunch of
> DSK images that I want to get back to an original Apple II/GS system
> thru a LC575 and emulator board.

It can be done with NuLib2, assuming you have ProDOS-ordered image files.
Use the "-k" flag.

% nulib2 ak foo.sdk CassetteTape1.po 
DONE compressing  CassetteTape1.po
% nulib2 v foo.sdk
 foo.sdk         Created:15-Mar-05 08:55   Mod:15-Mar-05 08:55     Recs:    1

 Name                        Type Auxtyp Archived         Fmat Size Un-Length
-----------------------------------------------------------------------------
 CassetteTape1.po            Disk 800k   15-Mar-05 08:55  lz2   59%    819200
-----------------------------------------------------------------------------
 Uncomp: 819200  Comp: 489974  %of orig: 59%


If you're working with lots of files, you can use the filename extension
goodies ("-e" or "-ee") to avoid having to specify it explicitly for each
file.

% nulib2 xee foo.sdk
DONE expanding   CassetteTape1.po#000640i.PO
% nulib2 ae foo2.sdk CassetteTape1.po#000640i.PO 
DONE compressing  CassetteTape1.po
% nulib2 v foo2.sdk
 foo2.sdk        Created:15-Mar-05 08:59   Mod:15-Mar-05 08:59     Recs:    1

 Name                        Type Auxtyp Archived         Fmat Size Un-Length
-----------------------------------------------------------------------------
 CassetteTape1.po            Disk 800k   15-Mar-05 08:59  lz2   59%    819200
-----------------------------------------------------------------------------
 Uncomp: 819200  Comp: 489974  %of orig: 59%

The gunk added on to the filename includes the block size of the original
disk (0x640 == 800) and 'i' to indicate a disk image.  Using "-ee" instead
of "-e" causes the ".PO" to be added for the benefit of applications that
rely on the filename extension.  Specifying "-e" with the "-a" causes the
"add" code to search for and recognize the "#000640i" part.

All of this can be done from CiderPress as well.


In addition, the "imgconv" program that comes with NuLib2 can convert
2MG images to ShrinkIt archives (and vice-versa).  The 2MG image can be
either DOS- or ProDOS-ordered.

NuLib2 does not currently provide a way to convert unadorned DOS-ordered
images to ProDOS order.

-- 
Send mail to fadden@fadden.com (Andy McFadden) - http://www.fadden.com/
CD-Recordable FAQ - http://www.cdrfaq.org/
CiderPress Apple II archive utility for Windows - http://www.faddensoft.com/
Fight Internet Spam - http://spam.abuse.net/spam/ & http://spamcop.net/