[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting Prodos file types
- Subject: Re: Setting Prodos file types
- From: sbdocker@acs.ucalgary.ca (Sean Brendan Dockery)
- Date: Sat, 11 Sep 1993 00:03:56 GMT
- Keywords: prodos, apple2, iigs, mac
- Newsgroups: comp.sys.apple2
- Organization: Griffin Software Development
- References: <26lmaq$9q@frost.rand.org>
In article <26lmaq$9q@frost.rand.org> bird@frost.rand.org (Eric Bird) 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.
| Thanks a lot.
You're welcome.
| -Eric Bird
| eric_bird@rand.org
--
internet: dockery@griffin.cuc.ab.ca |
-or- sbdocker@acs.ucalgary.ca | "640K ought to be enough for
-or- dockery@pro-calgary.cts.com | anybody."
pro-line: dockery@pro-calgary | -Bill Gates, 1986