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

Re: Setting Prodos file types



sbdocker@acs.ucalgary.ca (Sean Brendan Dockery) writes:

>| and edited the files, but whenever i try to do EXEC BINSCII.EXE I get a
>| "file type mismatch", presumably because the file is of type $00.  (I got
>| it onto a prodos disk by using the Prodos extension on my mac.)
>| 
>| the question is, how can I set the filetype of BINSCII.EXE to 'TXT' so that
>| EXEC will recognize it?  I can't use the program suggested on the IIgs
>| because it's encoded!  Is there any Mac (or PC) utility which can set
>| Prodos filetypes?  Or does anyone have a better solution?
>
>The easiest solution from BASIC.SYSTEM (that I believe will work) is...
>
>]BLOAD BINSCII.EXE,T$00,A$2000,L<length>
>]BSAVE TEMP,T$04,A$0000,B$2000,L<length>
>]RENAME BINSCII.EXE,BINSCII.OLD
>]RENAME TEMP,BINSCII.EXE
>]EXEC BINSCII.EXE
>
>The "T" parameter in the above commands overrides the type BINary
>requirements of the BLOAD and BSAVE commands.  Save an old copy of the
>original just in case. :)
>
>This procedure will save on the problem of obtaining and mucking
>around in a third party disk utility program.

I bet you'll run into the forked-typeless-file problem as well. The Mac
ProDOS extension writes files as forked typeless files. When ProDOS 8 returns
an unsupported storage type error to BASIC when it tries to access the file,
BASIC will give the file type mismatch error. Unless you have a IIgs you'll
most likely have to get binscii to your machine another way.
--
Randy Shackelford                              "That's right, keep dancing
shack@pro-ict.cts.com                           on the minefield"
                                                                 -Al Bundy