Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.msdos.programmer > #1296 > unrolled thread
| Started by | Harry Potter <rose.joseph12@yahoo.com> |
|---|---|
| First post | 2014-03-19 09:18 -0700 |
| Last post | 2014-03-31 13:16 -0500 |
| Articles | 14 — 7 participants |
Back to article view | Back to comp.os.msdos.programmer
Splitting files under DOS? Harry Potter <rose.joseph12@yahoo.com> - 2014-03-19 09:18 -0700
Re: Splitting files under DOS? "Stanley Daniel de Liver" <admin@127.0.0.1> - 2014-03-19 16:33 +0000
Re: Splitting files under DOS? "Stanley Daniel de Liver" <admin@127.0.0.1> - 2014-03-19 16:50 +0000
Re: Splitting files under DOS? Ben Ritchey <fido4cmech@lusfiber.net> - 2014-03-19 17:22 +0000
Re: Splitting files under DOS? Mateusz Viste <mateusz.viste@localhost> - 2014-03-19 17:39 +0100
Re: Splitting files under DOS? Ben Ritchey <fido4cmech@lusfiber.net> - 2014-03-19 17:22 +0000
Re: Splitting files under DOS? "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-03-19 21:49 -0400
Re: Splitting files under DOS? Harry Potter <rose.joseph12@yahoo.com> - 2014-03-21 07:18 -0700
Re: Splitting files under DOS? pete@nospam.demon.co.uk - 2014-03-21 19:27 +0000
Re: Splitting files under DOS? "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-03-21 17:31 -0400
Re: Splitting files under DOS? Harry Potter <rose.joseph12@yahoo.com> - 2014-03-24 07:13 -0700
Re: Splitting files under DOS? pete@nospam.demon.co.uk - 2014-03-22 19:49 +0000
Re: Splitting files under DOS? Harry Potter <rose.joseph12@yahoo.com> - 2014-03-24 07:15 -0700
Re: Splitting files under DOS? "Bill Buckels" <bbuckels@mts.net> - 2014-03-31 13:16 -0500
| From | Harry Potter <rose.joseph12@yahoo.com> |
|---|---|
| Date | 2014-03-19 09:18 -0700 |
| Subject | Splitting files under DOS? |
| Message-ID | <f8097e4f-5c47-4809-b62d-e61cb2f11633@googlegroups.com> |
What program can split and rejoin files under DOS? Where can I get it?
[toc] | [next] | [standalone]
| From | "Stanley Daniel de Liver" <admin@127.0.0.1> |
|---|---|
| Date | 2014-03-19 16:33 +0000 |
| Message-ID | <op.xcy9l41oo4et73@dell3100> |
| In reply to | #1296 |
On Wed, 19 Mar 2014 16:18:16 -0000, Harry Potter <rose.joseph12@yahoo.com> wrote: > What program can split and rejoin files under DOS? Where can I get it? There is a splendid English word for this - splice. http://lmgtfy.com/?q=splice Please is also a nice word. -- It's a money /life balance.
[toc] | [prev] | [next] | [standalone]
| From | "Stanley Daniel de Liver" <admin@127.0.0.1> |
|---|---|
| Date | 2014-03-19 16:50 +0000 |
| Message-ID | <op.xczae6bto4et73@dell3100> |
| In reply to | #1297 |
On Wed, 19 Mar 2014 16:33:30 -0000, Stanley Daniel de Liver <admin@127.0.0.1> wrote: > On Wed, 19 Mar 2014 16:18:16 -0000, Harry Potter > <rose.joseph12@yahoo.com> wrote: > >> What program can split and rejoin files under DOS? Where can I get it? > > There is a splendid English word for this - splice. > > http://lmgtfy.com/?q=splice > Hmm, seems it's not so easy to track down; it was from PC Magazine. (c) Ziff-Davies 1989 http://website.lineone.net/~michael_small/slice.zip > > Please is also a nice word. -- It's a money /life balance.
[toc] | [prev] | [next] | [standalone]
| From | Ben Ritchey <fido4cmech@lusfiber.net> |
|---|---|
| Date | 2014-03-19 17:22 +0000 |
| Message-ID | <lgcjod$5b9$2@speranza.aioe.org> |
| In reply to | #1299 |
"Stanley Daniel de Liver" <admin@127.0.0.1> wrote: > On Wed, 19 Mar 2014 16:33:30 -0000, Stanley Daniel de Liver <admin@127.0.0.1> wrote: > >> On Wed, 19 Mar 2014 16:18:16 -0000, Harry Potter > <rose.joseph12@yahoo.com> wrote: >> >>> What program can split and rejoin files under DOS? Where can I get it? >> >> There is a splendid English word for this - splice. >> >> http://lmgtfy.com/?q=splice >> > > Hmm, seems it's not so easy to track down; it was from PC Magazine. (c) Ziff-Davies 1989 > > http://website.lineone.net/~michael_small/slice.zip > >> >> Please is also a nice word. > Complete PC magazine collection at http://cmech.dynip.com :) -- Ben aka cMech http://cmech.dynip.com
[toc] | [prev] | [next] | [standalone]
| From | Mateusz Viste <mateusz.viste@localhost> |
|---|---|
| Date | 2014-03-19 17:39 +0100 |
| Message-ID | <5329c851$0$2243$426a74cc@news.free.fr> |
| In reply to | #1296 |
On 03/19/2014 05:18 PM, Harry Potter wrote: > What program can split and rejoin files under DOS? Where can I get it? Some compressors are able to create multi-volumes archives - at least RAR and PkZip can do that. In the 'free/opensource' neighborhood, I think 7z is able to do it. You can get 7z (p7zip) from the online FDNPKG repo. If you don't use the FDNPKG package manager (or your system is offline), then you can grab the p7zip package there: http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/repos/archivers/ Mateusz
[toc] | [prev] | [next] | [standalone]
| From | Ben Ritchey <fido4cmech@lusfiber.net> |
|---|---|
| Date | 2014-03-19 17:22 +0000 |
| Message-ID | <lgcjoc$5b9$1@speranza.aioe.org> |
| In reply to | #1296 |
Harry Potter <rose.joseph12@yahoo.com> wrote: > What program can split and rejoin files under DOS? Where can I get it? I use Xtract under DOS, goto my website (see sig below) choose filebase then look for Public folder. Grab Xtract.exe and Xtract.txt ... Put back together with "copy /b part1 + part2 + part3 partall" -- Ben aka cMech http://cmech.dynip.com
[toc] | [prev] | [next] | [standalone]
| From | "Rod Pemberton" <dont_use_email@xnothavet.cqm> |
|---|---|
| Date | 2014-03-19 21:49 -0400 |
| Message-ID | <op.xczzc2pv6zenlw@localhost> |
| In reply to | #1296 |
On Wed, 19 Mar 2014 12:18:16 -0400, Harry Potter <rose.joseph12@yahoo.com> wrote: > What program can split and rejoin files under DOS? Where can I get it? There are many of these programs available for DOS, but I'm not going to the search ancient Simtel, Garbo, Funet, Umich, Hobbes, etc archives for you. FSF GNU textutils package has split, csplit, join, paste and merge. For DOS, they're available via DJGPP. The binaries, source, and documentation are available. The binaries are in txt20b.zip at this link in the v2gnu directory: http://www.delorie.com/djgpp/dl/ofc/ GNU textutils was merged into coreutils. A simple description of each utility in the textutils package is here as part of GnuWin's coretutils: http://gnuwin32.sourceforge.net/packages/coreutils.htm I usually use my own utilities for file splitting, so don't ask me how to use the GNU textutils. Search for GNU textutils with the name of the utilities, or read the documentation. Many archivers, such as PKZip and TAR, can split files too, but they're usually designed to split compressed archives across writable media. They aren't usually designed to allow you to specify the size of the split. Depending on what you're doing, you may also want to find a program that dumps the file as hexadecimal and/or text and another that un-dumps. If you have Linux or Cygwin or GnuWin32 or DJGPP, you should have objdump and maybe hexdump to dump as hex. I'm not sure what is used to convert hex to binary. What I do with my utilities is dump the file as hex and text, run a line based filed splitter to break the file into parts by line count, edit the section I want to modify, join the splitted files back together, and then un-dump. My hex un-dump utility accepts modifications as both the hex and text sections. Obviously, I have four separate programs for each stage, not including editors. I use MS-DOS EDIT and/or a VI clone for DOS, perhaps called VIM. There are a number of hex capable text editors available for DOS, too. Generally, they'll only work on files less than 64K. So, you'd need a binary file splitter/joiner, in that case. Rod Pemberton
[toc] | [prev] | [next] | [standalone]
| From | Harry Potter <rose.joseph12@yahoo.com> |
|---|---|
| Date | 2014-03-21 07:18 -0700 |
| Message-ID | <7102a072-d87b-4494-8485-f3b9f5c612c1@googlegroups.com> |
| In reply to | #1296 |
On Wednesday, March 19, 2014 12:18:16 PM UTC-4, Harry Potter wrote: > What program can split and rejoin files under DOS? Where can I get it? I thank you all for your input. Now let me explain myself: I am experimenting with file compression. I am also working on earning some money to fix a broken WinVista computer by selling freeware and shareware. Now, if I have the codec ready and better by then, I'll need a different method to split files. For Win98, I use FFSJ. I need one for DOS. This is because, even if I get some compression done, it won't reach the point to splitting files. I will look at your information now. :)
[toc] | [prev] | [next] | [standalone]
| From | pete@nospam.demon.co.uk |
|---|---|
| Date | 2014-03-21 19:27 +0000 |
| Message-ID | <1395430029snz@nospam.demon.co.uk> |
| In reply to | #1303 |
On 21st Mar 2014 at 07:18 "Harry Potter" <rose.joseph12@yahoo.com> wrote: > On Wednesday, March 19, 2014 12:18:16 PM UTC-4, Harry Potter wrote: > > What program can split and rejoin files under DOS? Where can I get it? > > I thank you all for your input. Now let me explain myself: I am experiment > ing with file compression. I am also working on earning some money to fix > a broken WinVista computer by selling freeware and shareware. Now, if I ha > ve the codec ready and better by then, I'll need a different method to spli > t files. For Win98, I use FFSJ. I need one for DOS. This is because, eve > n if I get some compression done, it won't reach the point to splitting fil > es. I will look at your information now. :) Selling freeware is a novel concept :-) However, if you can't find exactly what you are looking for it is not a big deal to write a file "chunker" and "rejoiner". As you are talking about compressed data I assume you want to split on file size rather than line count, so you just have to decide the "chunk" size. Splitting: * read 'chunk' bytes from file filename.bin * write to filename.001 (or filename.aaa if more than 1000 chunks) * write next chunk to filename.002 (or .aab) etc. etc. Rejoining: * prompt for "filename.bin" (or specify on command line) * build filename inside 3 nested loops (0 to 9 or A to Z) * open/read that file and write to filename.bin * keep iterating until no more files and append to filename.bin * done! Of course, that could be a single programme containing both functions but differentiated with a e.g. /J or -J switch on the commandline for the joining operation. I reckon you should be able to write that in less time than it takes to search for exactly what you want and download/test it... Pete -- Believe those who are seeking the truth. Doubt those who find it. - André Gide
[toc] | [prev] | [next] | [standalone]
| From | "Rod Pemberton" <dont_use_email@xnothavet.cqm> |
|---|---|
| Date | 2014-03-21 17:31 -0400 |
| Message-ID | <op.xc3cqee56zenlw@localhost> |
| In reply to | #1303 |
On Fri, 21 Mar 2014 10:18:09 -0400, Harry Potter <rose.joseph12@yahoo.com> wrote: > On Wednesday, March 19, 2014 12:18:16 PM UTC-4, Harry Potter wrote: >> What program can split and rejoin files under DOS? Where can I get it? > [...] I am experimenting with file compression. [...] > Now, if I have the codec ready and better by then, I'll need a different > method to split files. [...] I need [a file splitter] > for DOS. This is because, even if I get some compression done, > it won't reach the point to splitting files. I forgot... DOS' COPY command (not XCOPY) can join split binaries, but it won't select all files to be joined automatically. You must specify them on the command line, or with a simple batch script. PKZIP can store files, i.e., no compression, and split. So, if you've already compressed them with your compressor, storing without compression with an existing archiver, like PKZIP or TAR or maybe even 7ZIP or BZIP2, might be an option. I already mentioned this, but most archivers can split to media sizes, like floppy disk capacities, etc. Rod Pemberton
[toc] | [prev] | [next] | [standalone]
| From | Harry Potter <rose.joseph12@yahoo.com> |
|---|---|
| Date | 2014-03-24 07:13 -0700 |
| Message-ID | <16c788ad-986d-4442-8ed4-12cec54f0053@googlegroups.com> |
| In reply to | #1305 |
On Friday, March 21, 2014 5:31:16 PM UTC-4, Rod Pemberton wrote: > I forgot... DOS' COPY command (not XCOPY) can join split binaries, > but it won't select all files to be joined automatically. You must > specify them on the command line, or with a simple batch script. > I think that might be useful. > PKZIP can store files, i.e., no compression, and split. So, if > you've already compressed them with your compressor, storing without > compression with an existing archiver, like PKZIP or TAR or maybe > even 7ZIP or BZIP2, might be an option. I already mentioned this, > but most archivers can split to media sizes, like floppy disk > capacities, etc. > I think that might also be useful. I'd rather use the former. Thank you! :)
[toc] | [prev] | [next] | [standalone]
| From | pete@nospam.demon.co.uk |
|---|---|
| Date | 2014-03-22 19:49 +0000 |
| Message-ID | <1395517749snz@nospam.demon.co.uk> |
| In reply to | #1303 |
On 21st Mar 2014 at 07:18 "Harry Potter" <rose.joseph12@yahoo.com> wrote: > On Wednesday, March 19, 2014 12:18:16 PM UTC-4, Harry Potter wrote: > > What program can split and rejoin files under DOS? Where can I get it? > > I thank you all for your input. Now let me explain myself: I am experiment > ing with file compression. I am also working on earning some money to fix > a broken WinVista computer by selling freeware and shareware. Now, if I ha > ve the codec ready and better by then, I'll need a different method to spli > t files. For Win98, I use FFSJ. I need one for DOS. This is because, eve > n if I get some compression done, it won't reach the point to splitting fil > es. I will look at your information now. :) > Trawling through an old floppy archive I came across such a utility that I wrote 20+ years ago -- shout if you would like the C source. Pete -- Believe those who are seeking the truth. Doubt those who find it. - André Gide
[toc] | [prev] | [next] | [standalone]
| From | Harry Potter <rose.joseph12@yahoo.com> |
|---|---|
| Date | 2014-03-24 07:15 -0700 |
| Message-ID | <f5b3b335-ec4e-4912-9b56-89507d4fd4fd@googlegroups.com> |
| In reply to | #1306 |
On Saturday, March 22, 2014 3:49:09 PM UTC-4, pe...@nospam.demon.co.uk wrote: > Trawling through an old floppy archive I came across such a utility > that I wrote 20+ years ago -- shout if you would like the C source. > I'd like the binary and don't need the source. Can you send me a copy, please?
[toc] | [prev] | [next] | [standalone]
| From | "Bill Buckels" <bbuckels@mts.net> |
|---|---|
| Date | 2014-03-31 13:16 -0500 |
| Message-ID | <lhcbd3$c1e$1@speranza.aioe.org> |
| In reply to | #1296 |
"Harry Potter" <rose.joseph12@yahoo.com> wrote: >What program can split and rejoin files under DOS? Where can I get it? You could download the original Split-it! written by Bill Buckels and just paste whatever code you want into whatever you are writing: Read About it here: http://www.teacherschoice.ca/cprog/splitit.txt Download it here: http://www.teacherschoice.ca/cprog/splitit3.zip Comes with Win32 GUI and MS-DOS Versions, both in Command Line and Interactive Modes, with source, and is free, and has been free since I first distributed the MS-DOS version in 1992. Which is why it was included with some computer books that folks bought back then when folks actually bought books and downloaded from BBS's including my BBS (The BuckBoard).. And Just to clarify, in English: Splitting files *IS* what this real *MS-DOS PROGRAMMER* did with files with files to split them, back in the '80's and early to mid 90's when there were *REAL* MS-DOS programmers actually working at it for pay. I don't recall anything splendidly slicing, dicing and splicing or whatever else splitting and joining might be called today... the world was a larger place then. Programmers didn't get-out much... Joining files *IS* what I did when I joined them. But the copy command works just as well for concatanating the pieces back together. I'd almost forgot about this. Been meaning to get that MS-DOS retro website back-up for about a decade now. And no, Joseph this isn't written in Aztec C... the Win32 version is in Microsoft C that came with Visual Studio 6. The MS-DOS version is dead-dumb C written compiled using Dennis Saunder's MIX Power-C but like I say it's stupidly simple and would take me only afew hours to code this today, so it shouldn't take you long to paste this into whatever you wish, with full blessing, and a clear conscience. You can even copyright your own work without displaying any credits or anything which may help you with whoever you are doing this for. Have fun anyway... Bill
[toc] | [prev] | [standalone]
Back to top | Article view | comp.os.msdos.programmer
csiph-web