home *** CD-ROM | disk | FTP | other *** search
- id m0u5KhV-0007rTa; Fri, 5 Apr 96 16:13 MST
- Sender: owner-executor
- Received: from ardi.com by ftp.ardi.com
- (Smail3.1.29.1 #3) id m0u5Kgm-0007rQn; Fri, 5 Apr 96 16:13 MST
- Path: sloth.swcp.com!tesuque.cs.sandia.gov!ferrari.mst6.lanl.gov!nntp-server.caltech.edu!fnnews.fnal.gov!uwm.edu!lll-winken.llnl.gov!hookup!news.mathworks.com!tank.news.pipex.net!pipex!blackbush.xlink.net!news.uni-mainz.de!news.th-darmstadt.de!hp62.rbg.informatik.th-darmstadt.de!alexlehm
- From: alexlehm@rbg.informatik.th-darmstadt.de (Alexander Lehmann)
- Newsgroups: comp.emulators.mac.executor
- Subject: Re: disk images
- Date: 3 Apr 1996 18:26:33 GMT
- Organization: Technische Hochschule Darmstadt
- Lines: 54
- Message-ID: <4jufsp$v3j@rs18.hrz.th-darmstadt.de>
- References: <199604031539.KAA00688@franklin-fddi.cris.com>
- NNTP-Posting-Host: hp62.rbg.informatik.th-darmstadt.de
- X-Newsreader: TIN [version 1.2 PL2]
- To: executor@ardi.com
- X-MailNews-Gateway: From newsgroup comp.emulators.mac.executor
- Sender: owner-executor@ardi.com
- Precedence: bulk
-
- John Hess (johnhess@cris.com) wrote:
- : :At 04:14 PM 4/2/96 -0500, Matt `The Man` Galgoci wrote:
- : :Hi-
- : : I realize that in order to use a disk image as a hfv, the first
- : :84 bytes must be stripped off the beginning and the image renamed using
- : :*.hfv convention. Right now, with DOS, I'm not aware of any methods
- : :that I can use to do this. (Yes, I do know how to rename files :-))
- : :Could a Hex editor be used? How about any of the Norton Utilities?
-
- : My question is, how do I get the file to copy back to the DOS area so I CAN
- : edit it after I un-hqx/sit/sea it?
- Any file that is on a HFV volume can be copied back to a DOS volume if it
- is renamed to 7.3 chars, the 8th is taken up by the % sign that is prepended
- to the name to get a 2nd filename for the resource fork. Or you could
- encode the file in MacBinary format, copy it to a DOS volume and then
- decode it with a DOS macbin program (from e.g. SimTel), this will probably
- extract only the data fork and choose a name that is valid in DOS.
-
-
- : If you have the actual image file in
- : DOS, you should be able to strip the first 84 bits with the following BASIC
- : code. Note that it is written free-hand on line. As always when mucking
- : about with a file you want to keep, save it somewhere else before mucking
- : about with it.
-
- : 10 Open "filename.ext" for input as #1
- : 20 Open "newname.ext" for output as #2
- : 30 x=1
- : 40 while not eof(1)
- : 50 a$=input$(1,1)
- : 60 if x > 84 then print #2,a$
- : 70 x=x+1
- : 80 a$=""
- : 90 wend
-
- Hm, this probably doesn't work, since DOS distinguishes between text and
- binary files and the basic runtime will remove all CRs (0x0d) from the file
- and even worse, the file with be considered finished at the first ^Z (0x1a)(*).
- I have no idea if there is something like a binary open mode in BASIC, I would
- suggest writing a C or Pascal program. Or you could use dd or tail if you
- have access to a unix system (maybe there is a dd format for DOS somewhere).
-
-
- bye, Alexander
-
-
- (*) At least I think that is what is does, pretty long since I wrote BASIC
- programs at all.
-
- --
- Alexander Lehmann, | "On the Internet,
- alex@hal.rhein-main.de (plain, MIME, NeXT) | nobody knows
- alexlehm@rbg.informatik.th-darmstadt.de (plain) | you're a dog."
- <URL:http://www.student.informatik.th-darmstadt.de/~alexlehm/>
-
-