Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!eru!hagbard!sunic!news.funet.fi!uwasa.fi!ts From: ts@uwasa.fi (Timo Salmi LASK) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: **** WANTED **** BINARY FILE COPY PROGRAM Message-ID: <1990Sep21.071337.10847@uwasa.fi> Date: 21 Sep 90 07:13:37 GMT References: <90263.114424POTELLE@MAINE.BITNET> Organization: University of Vaasa Lines: 49 In article <90263.114424POTELLE@MAINE.BITNET> POTELLE@MAINE.BITNET (John A. Potelle) writes: >This program should be able to copy PARTS of files, given a starting >relative address within the source file and a length. >Example of a possible command line syntax: >chopcopy [-s100 [-l360]] >HEX or DECimal addressess/lengths - I don't care which... >Anyone know of such a beast or care to write one ? TSUTLC16.ARC Third set of Utilities, T.Salmi Filename Comment Date Time CRC -------- -------------------------------- ---- ---- --- DIRF.EXE Directory in full, recursive 07-02-89 09:48:20 A074 DIRINFO.EXE Directory information of a disk 06-16-89 15:36:08 C51A DOUBLES.EXE Find double file names on a disk 10-16-89 22:55:48 5438 DTEDIF.EXE Difference between two dates 07-02-89 13:12:10 6DFE HIDDEN.EXE Find all hidden files on disk 06-09-89 23:02:58 3587 READONLY.EXE Find all readonly files on disk 06-09-89 23:00:06 2EC8 --> SPLIT.EXE Split a file into pieces 06-23-89 08:41:50 0EDD TSPROG.INF List of PD programs from T.Salmi 10-16-89 08:30:44 D636 TSUTLC.INF Document 10-16-89 20:05:22 3CFE VAASA.INF Info: Finland, Vaasa, U of Vaasa 06-23-89 08:30:08 88AB WHATDATE.EXE Date +- number of days from now 07-02-89 09:23:08 2190 YES Yes for redirected DOUBLES prog 06-16-89 12:41:44 5BA2 ZEROFILE.EXE Find all empty files on disk 06-09-89 22:55:42 B765 ---- ------ ------ ----- 0013 143530 107789 25% The split.exe program splits a binary (or a text) file into parts which have the number of bytes you give as the parameter. You'll have to do your task in at least two phases, since split.exe does not take both the starting and the ending address as the parameters (only the number of bytes in the split parts). This is thus only an intermediate solution (kludge), and requires some calculations on the user's part. So while this is not exactly the syntax you want, split.exe can be used to achieve the desired extraction. The package is available by anonymous ftp from our site, directory /pc/ts. BTW writing a slow program that does what you want should be trivial. The trick is to make it a relatively fast one. Then another suggestion. Take a closer look at Buerg's /pc/pd2/list75b.zip in case it could be utilized to achieve the same effect (I'm not sure). P.S. I think that we should call this binary extracting rather than binary copying (cf the subject). ................................................................... Prof. Timo Salmi (Moderating at anon. ftp site 128.214.12.3) School of Business Studies, University of Vaasa, SF-65101, Finland Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun