• Re: Extracting files from .DSK

    From pausch@pausch@saaf.se (Paul Schlyter) to comp.sys.apple2 on Tuesday, July 08, 2003 09:30:46
    From Newsgroup: comp.sys.apple2

    In article <TxQNa.150969$lK4.4235261@twister1.libero.it>,
    Piergiorgio d' Errico <pgde8@libero.it> wrote:

    Hello to everyone !
    I have the need to extract files from a .DSK image to Linux fs, but I don't find around a tool for this. Also I need to detokenize Applesoft & Integer Basic files.
    As someone surely guess, I want to get ASCII-readable sources of tokenized BASIC (A & I) files on Linux fs.

    Hope someone can help me.
    TIA

    Download the freeware FID utility from my Apple II page:

    http://home.tiscali.se/pausch/apple2/

    It comes with free C source (one single C file) and does what you
    want to do. Files can be extracted in binary or ASCII form -- the
    latter includes a detokenization of Basic (A & I) files.

    I haven't run it on Linux yet, but it compiles and runs fine on
    Free-BSD, HP-UX and AIX, so I would expect no problems on Linux.

    --
    ----------------------------------------------------------------

    Paul Schlyter, Grev Turegatan 40, SE-114 38 Stockholm, SWEDEN

    e-mail: pausch at stockholm dot bostream dot se

    WWW: http://www.stjarnhimlen.se/

    http://home.tiscali.se/pausch/

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Greg Buchner@apple22@mn.rr.com to comp.sys.apple2 on Tuesday, July 08, 2003 13:57:10
    From Newsgroup: comp.sys.apple2

    In article <bee3uk$1hud$1@merope.saaf.se>,
    pausch@saaf.se (Paul Schlyter) wrote:

    the only reason
    it won't run on a Mac is because the Mac enforces a GUI on you, it has
    no command line....

    Mac OS X is BSD Unix. It does have a command line. I've run programs
    that way. If I had a clue as to how to compile your program, I'd
    probably give it a shot. But my programming knowledge is pretty much
    limited to Applesoft BASIC.

    Greg B.

    --
    There's just one 2 in my e-mail address, so delete one to e-mail me.
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Andy McFadden@fadden@fadden.com to comp.sys.apple2 on Tuesday, July 08, 2003 16:17:18
    From Newsgroup: comp.sys.apple2

    Paul Schlyter <pausch@saaf.se> wrote:
    I have the need to extract files from a .DSK image to Linux fs, but I don't >>> find around a tool for this. Also I need to detokenize Applesoft & Integer >>> Basic files.

    This is getting amusing..... almost....

    He wanted to do it on Linux. So why are you pointing at software not
    running on Linux, while you keep silent of a piece of software which
    actually does the job on Linux: the freeware FID utility from my
    Apple II page:


    People who have written a piece of software tend to believe that theirs
    is the most useful.

    The way I get Apple II files onto Linux is via a Samba server on my Red
    Hat box, so I can get files "to Linux fs" without needing to run software
    under Linux. Besides, there's nothing especially radical about the way
    CP was written, so it should work fine in a Windows emulator like WINE.

    The CiderPress point and click interface is more convenient for most
    people than a CLI, especially when you want to convert a large set of
    files from multiple disks. (Open the disk, click in the header to sort
    by file type, shift-click to select the file range, and use the "extract" feature to extract and convert all files.) A2Fid is limited to DOS 3.3
    disks, although since the original poster mentioned Integer BASIC there's
    a fair chance it's what he wanted.

    Besides, A2FID.C is already mentioned in the CiderPress credits. :-) (If
    you ever find yourself running Windows, go to Help-->About, then Credits).

    --
    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/
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From pausch@pausch@saaf.se (Paul Schlyter) to comp.sys.apple2 on Tuesday, July 08, 2003 17:47:56
    From Newsgroup: comp.sys.apple2

    In article <apple22-68223D.08561108072003@apollo-ge0.rdc-kc.rr.com>,
    Greg Buchner <apple22@mn.rr.com> wrote:

    In article <bee3uk$1hud$1@merope.saaf.se>,
    pausch@saaf.se (Paul Schlyter) wrote:

    the only reason
    it won't run on a Mac is because the Mac enforces a GUI on you, it has
    no command line....

    Mac OS X is BSD Unix. It does have a command line. I've run programs
    that way. If I had a clue as to how to compile your program, I'd
    probably give it a shot.

    To compile it, you simply type one of (assuming fid.c is in your
    current directory):

    cc fid.c -o fid

    or

    gcc fid.c -o fid

    depending on the name of your C compiler (a C compiler is included in
    all Unix distributions I've ever had access to).

    To run the program, you simply type one of:

    ./fid

    ./fid <name_of_dsk_image>

    ./fid *.dsk

    and then answer the questions (the leading ./ can be omitted if
    you have . in your PATH).

    If you give it a try, I'd like to know how it all went.


    But my programming knowledge is pretty much limited to Applesoft BASIC.

    You don't need to knpow how to program in C to run someone else's
    C program....

    --
    ----------------------------------------------------------------

    Paul Schlyter, Grev Turegatan 40, SE-114 38 Stockholm, SWEDEN

    e-mail: pausch at stockholm dot bostream dot se

    WWW: http://www.stjarnhimlen.se/

    http://home.tiscali.se/pausch/

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Andy McFadden@fadden@fadden.com to comp.sys.apple2 on Tuesday, July 08, 2003 21:39:56
    From Newsgroup: comp.sys.apple2

    Paul Schlyter <pausch@saaf.se> wrote:
    This of course
    reflects my own needs: I often needed to figure out on which of a
    large number of .DSK images a particular file resided, but I never
    felt any need to convert these files en masse to ASCII files on the
    host file system.

    You may want to give MDC (Multi-Disk Catalog, part of CiderPress) a try.
    It'll generate listings for all disk images in a directory hierarchy
    (DOS, ProDOS, CP/M, Pascal, RDOS), and automatically unpacks .gz files.
    I wrote it for a similar reason: finding stuff on hundreds of floppy and
    hard drive images can be a pain. Letting it run through a local copy of
    an FTP archive is kind of fun.

    Unlike the main CP app, MDC doesn't require registration (it's one of those "free bonus just for trying" things, so it doesn't expire).

    --
    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/
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Sheldon Simms@sheldonsimms@yahoo.com to comp.sys.apple2 on Tuesday, July 08, 2003 18:37:54
    From Newsgroup: comp.sys.apple2

    On Tue, 08 Jul 2003 17:47:56 +0000, Paul Schlyter wrote:

    In article <apple22-68223D.08561108072003@apollo-ge0.rdc-kc.rr.com>,
    Greg Buchner <apple22@mn.rr.com> wrote:

    Mac OS X is BSD Unix. It does have a command line. I've run programs
    that way. If I had a clue as to how to compile your program, I'd
    probably give it a shot.

    To compile it, you simply type one of (assuming fid.c is in your
    current directory):

    cc fid.c -o fid

    or

    gcc fid.c -o fid

    depending on the name of your C compiler (a C compiler is included in
    all Unix distributions I've ever had access to).

    It's not automatically installed on Mac OS X, at least not on my
    computer it wasn't. I had to go find the package and look for the
    developer CD. You can also go to developer.apple.com and download
    a disk image of the developer tools. It's a big download though...

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Greg Buchner@apple22@mn.rr.com to comp.sys.apple2 on Wednesday, July 09, 2003 01:13:42
    From Newsgroup: comp.sys.apple2

    In article <bef04c$1s28$1@merope.saaf.se>,
    pausch@saaf.se (Paul Schlyter) wrote:

    If you give it a try, I'd like to know how it all went.

    Went well. I did have to compile (gcc) fidunix.c from your zip archive.
    It compiled with no errors, I put it in the /usr/bin/ folder, made it executable, navigated to a DOS 3.3 .dsk image file and got this:

    [Computer:Apple II Stuff/Catakig/Disks] username% fid

    Usage: fid [-d] <afn1> [<anf2> ... <afnn>]
    -d: dump files in disk images
    [Computer:Apple II Stuff/Catakig/Disks] username% fid 'Apple Mechanic'

    Apple Mechanic:
    *A 015 APPLE MECHANIC
    T 001 A
    SHAPE PROGRAMS
    *A 024 SHAPE EDITOR
    *A 024 FONT EDITOR
    *A 013 FONT SPLITTER
    *A 021 SHAPE ANALYZER
    *A 020 XTYPER
    *A 010 HI-WRITER
    T 001 B
    DEMOS
    *A 023 HI-WRITER DEMO
    *A 021 SHAPE TABLE DEMO
    *A 022 GREETINGS
    T 001 C
    EXTRAS
    *T 002 PAGE COPY 1=2
    *T 002 PAGE COPY 2=1
    *T 002 PAGE COPY 1=3
    *A 042 BYTE ZAP
    *A 023 SONG SUBROUTINES
    *A 009 TEXT TRICKS
    *A 032 TWO-LINERS
    T 001 D
    SHAPES @IMAGES ]FONTS
    *B 003 CURSORS
    *B 005 DEMO SHAPES
    *B 034 @BBROS LOGO
    *B 034 @FONT SAMPLES
    *B 007 ]SMALL STANDARD
    *B 008 ]SMALL SQUARE
    *B 017 ]APPLE
    *B 017 ]BLOCK
    *B 020 ]STENCIL
    *B 018 ]WESTERN
    *A 004 CHART
    [Computer:Apple II Stuff/Catakig/Disks] username%

    So, it works under Mac OS X. The compiled app is 34,420 bytes.
    Compiled it with gcc from the Dec 2002 Developer Tools.

    Greg B.

    --
    There's just one 2 in my e-mail address, so delete one to e-mail me.
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From pausch@pausch@saaf.se (Paul Schlyter) to comp.sys.apple2 on Wednesday, July 09, 2003 08:48:19
    From Newsgroup: comp.sys.apple2

    In article <MSGOa.41$dk4.2736@typhoon.sonic.net>,
    Andy McFadden <fadden@fadden.com> wrote:

    Paul Schlyter <pausch@saaf.se> wrote:
    This of course
    reflects my own needs: I often needed to figure out on which of a
    large number of .DSK images a particular file resided, but I never
    felt any need to convert these files en masse to ASCII files on the
    host file system.

    You may want to give MDC (Multi-Disk Catalog, part of CiderPress) a try. It'll generate listings for all disk images in a directory hierarchy
    (DOS, ProDOS, CP/M, Pascal, RDOS), and automatically unpacks .gz files.
    I wrote it for a similar reason: finding stuff on hundreds of floppy and
    hard drive images can be a pain. Letting it run through a local copy of
    an FTP archive is kind of fun.

    Unlike the main CP app, MDC doesn't require registration (it's one of those "free bonus just for trying" things, so it doesn't expire).

    Thanks for pointing this out -- I'll give it a try.

    --
    ----------------------------------------------------------------

    Paul Schlyter, Grev Turegatan 40, SE-114 38 Stockholm, SWEDEN

    e-mail: pausch at stockholm dot bostream dot se

    WWW: http://www.stjarnhimlen.se/

    http://home.tiscali.se/pausch/

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From pausch@pausch@saaf.se (Paul Schlyter) to comp.sys.apple2 on Wednesday, July 09, 2003 08:48:51
    From Newsgroup: comp.sys.apple2

    In article <apple22-EC1ED6.20124508072003@apollo-ge0.rdc-kc.rr.com>,
    Greg Buchner <apple22@mn.rr.com> wrote:

    In article <bef04c$1s28$1@merope.saaf.se>,
    pausch@saaf.se (Paul Schlyter) wrote:

    If you give it a try, I'd like to know how it all went.

    Went well. I did have to compile (gcc) fidunix.c from your zip archive.

    Yep, that's the normal procedure for free Unix applications: you get
    the source, and then produce a binary for your specific Unix
    platform. That's feasible on Unix, since C (and nowadays usually
    also C++) compilers are always present in the standard distributions.

    It compiled with no errors, I put it in the /usr/bin/ folder, made it executable, navigated to a DOS 3.3 .dsk image file and got this:

    [Computer:Apple II Stuff/Catakig/Disks] username% fid

    Usage: fid [-d] <afn1> [<anf2> ... <afnn>]
    -d: dump files in disk images
    [Computer:Apple II Stuff/Catakig/Disks] username% fid 'Apple Mechanic'

    Apple Mechanic:
    *A 015 APPLE MECHANIC
    ...................
    *B 018 ]WESTERN
    *A 004 CHART
    [Computer:Apple II Stuff/Catakig/Disks] username%

    So, it works under Mac OS X. The compiled app is 34,420 bytes.
    Compiled it with gcc from the Dec 2002 Developer Tools.

    Thanks for testing it! So now I know it also works on Mac-OS X.... :-)

    --
    ----------------------------------------------------------------

    Paul Schlyter, Grev Turegatan 40, SE-114 38 Stockholm, SWEDEN

    e-mail: pausch at stockholm dot bostream dot se

    WWW: http://www.stjarnhimlen.se/

    http://home.tiscali.se/pausch/

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Greg Buchner@apple22@mn.rr.com to comp.sys.apple2 on Wednesday, July 09, 2003 13:26:25
    From Newsgroup: comp.sys.apple2

    In article <begktj$2hfp$1@merope.saaf.se>,
    pausch@saaf.se (Paul Schlyter) wrote:

    In article <apple22-EC1ED6.20124508072003@apollo-ge0.rdc-kc.rr.com>,
    Greg Buchner <apple22@mn.rr.com> wrote:

    In article <bef04c$1s28$1@merope.saaf.se>,
    pausch@saaf.se (Paul Schlyter) wrote:

    If you give it a try, I'd like to know how it all went.

    Went well. I did have to compile (gcc) fidunix.c from your zip archive.

    Yep, that's the normal procedure for free Unix applications: you get
    the source, and then produce a binary for your specific Unix
    platform. That's feasible on Unix, since C (and nowadays usually
    also C++) compilers are always present in the standard distributions.

    Yep, but was just pointing out that you said to compile fid.c when I
    needed to do fidunix.c on my end.

    Otherwise, happy to help and to let you know that it does work on a
    properly equipped Mac.

    Greg B.

    --
    There's just one 2 in my e-mail address, so delete one to e-mail me.
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From rthomas@rthomas@wwlnk.net (Robert Thomas) to comp.sys.apple2 on Wednesday, July 09, 2003 07:30:33
    From Newsgroup: comp.sys.apple2

    pausch@saaf.se (Paul Schlyter) wrote in message news:<bee306$1hgi$1@merope.saaf.se>...
    In article <TxQNa.150969$lK4.4235261@twister1.libero.it>,
    Piergiorgio d' Errico <pgde8@libero.it> wrote:

    Hello to everyone !
    I have the need to extract files from a .DSK image to Linux fs, but I don't
    find around a tool for this. Also I need to detokenize Applesoft & Integer Basic files.
    As someone surely guess, I want to get ASCII-readable sources of tokenized BASIC (A & I) files on Linux fs.

    Hope someone can help me.
    TIA

    Download the freeware FID utility from my Apple II page:

    http://home.tiscali.se/pausch/apple2/

    It comes with free C source (one single C file) and does what you
    want to do. Files can be extracted in binary or ASCII form -- the
    latter includes a detokenization of Basic (A & I) files.

    I haven't run it on Linux yet, but it compiles and runs fine on
    Free-BSD, HP-UX and AIX, so I would expect no problems on Linux.


    How about A/UX?
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From pausch@pausch@saaf.se (Paul Schlyter) to comp.sys.apple2 on Wednesday, July 09, 2003 18:46:06
    From Newsgroup: comp.sys.apple2

    In article <apple22-1BC3D8.08280309072003@zeus-ge0.rdc-kc.rr.com>,
    Greg Buchner <apple22@mn.rr.com> wrote:

    In article <begktj$2hfp$1@merope.saaf.se>,
    pausch@saaf.se (Paul Schlyter) wrote:

    In article <apple22-EC1ED6.20124508072003@apollo-ge0.rdc-kc.rr.com>,
    Greg Buchner <apple22@mn.rr.com> wrote:

    In article <bef04c$1s28$1@merope.saaf.se>,
    pausch@saaf.se (Paul Schlyter) wrote:

    If you give it a try, I'd like to know how it all went.

    Went well. I did have to compile (gcc) fidunix.c from your zip archive.

    Yep, that's the normal procedure for free Unix applications: you get
    the source, and then produce a binary for your specific Unix
    platform. That's feasible on Unix, since C (and nowadays usually
    also C++) compilers are always present in the standard distributions.

    Yep, but was just pointing out that you said to compile fid.c when I
    needed to do fidunix.c on my end.

    OK, a minor quibble -- but you're right of course.

    Otherwise, happy to help and to let you know that it does work on a
    properly equipped Mac.

    BTW I just tested it on CygWin (a Linux-like environment on top
    of Windows), and it ran fine there too....

    --
    ----------------------------------------------------------------

    Paul Schlyter, Grev Turegatan 40, SE-114 38 Stockholm, SWEDEN

    e-mail: pausch at stockholm dot bostream dot se

    WWW: http://www.stjarnhimlen.se/

    http://home.tiscali.se/pausch/

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From pausch@pausch@saaf.se (Paul Schlyter) to comp.sys.apple2 on Wednesday, July 09, 2003 18:46:33
    From Newsgroup: comp.sys.apple2

    In article <4788ecae.0307090630.4303b07f@posting.google.com>,
    Robert Thomas <rthomas@wwlnk.net> wrote:

    pausch@saaf.se (Paul Schlyter) wrote in message news:<bee306$1hgi$1@merope.saaf.se>...
    In article <TxQNa.150969$lK4.4235261@twister1.libero.it>,
    Piergiorgio d' Errico <pgde8@libero.it> wrote:

    Hello to everyone !
    I have the need to extract files from a .DSK image to Linux fs, but I don't
    find around a tool for this. Also I need to detokenize Applesoft & Integer >>> Basic files.
    As someone surely guess, I want to get ASCII-readable sources of tokenized >>> BASIC (A & I) files on Linux fs.

    Hope someone can help me.
    TIA

    Download the freeware FID utility from my Apple II page:

    http://home.tiscali.se/pausch/apple2/

    It comes with free C source (one single C file) and does what you
    want to do. Files can be extracted in binary or ASCII form -- the
    latter includes a detokenization of Basic (A & I) files.

    I haven't run it on Linux yet, but it compiles and runs fine on
    Free-BSD, HP-UX and AIX, so I would expect no problems on Linux.


    How about A/UX?

    It ought to work there too, unless A/UX behaves significantly
    different from other OS'es. It ran on Mac-OS X anyway.....

    --
    ----------------------------------------------------------------

    Paul Schlyter, Grev Turegatan 40, SE-114 38 Stockholm, SWEDEN

    e-mail: pausch at stockholm dot bostream dot se

    WWW: http://www.stjarnhimlen.se/

    http://home.tiscali.se/pausch/

    --- Synchronet 3.18b-Win32 NewsLink 1.113