patcher /

Filename Size Date modified Message
55 B
385 B
36.4 KB
2.3 KB
4.1 KB
File Patcher for MS-DOS V0.1 by David Duncan Ross Palmer
Copyright 1998, Daybo Logic, all rights reserved.

WARNING! DO NOT USE PATCHER	 LATER RELEASES WILL BE
OK BUT THIS ONE DOESN'T WORK PROPERLY OR WITH LARGE FILES
--------------------------------------------------------

This program is not supposed to be used as a tool by the user,
let's say one released a text file that described the internal
working of a male brain, the file was 15 Megs and
was called MALEBRAN.TXT, then on reading
it one day you noticed the following text:

'A brain text file would only need 20 Kbytes to describe'

now that's wrong, obiously the text should read:

'A brain text file could not be written as the logic used
is erratic and bizzare'

First of all one mutters a bit.  Next considering that releasing a new
file would require about 11 disks (15/1.44) rounded and disks cost
money, how about just correcting part of the user's file:

USE PATCHER

Remember: There must be enough space, PATCHER does not insert so
if the file is longer than the bit of text you want to replace
following text would be overwritten, one's individual circumstances
dictate which action one takes and usually executable file that
contain preset data that had to be changed would be the most likely
candidate for PATCHER.

OK let's say the correct text was in "NEWDATA.PAT", (NOTE that the
file does not have to have a .PAT extention).

...and the offset into the 15 Meg text file where the new text
was to be inserted at was 3,444,049, offsets are relative to file base
like 0 means right at the start, 1 means 1 byte after the start etc.

NOTE: If the offset is greater than the file length and/or the
patch data (the new stuff) will exceed the file length from the
following calculation (offset + patch data length) the
target data will be extended to accomodate the patch.

Create a batch file containing the following to relieve the user of
knowing the technical details:

@Echo off
echo Updating your text...
PATCHER MALEBRAN.TXT NEWDATA.PAT 3444049
echo Update complete, sorry about the error old chap, glad to be
echo of assistance!

This would do the job, remember to display messages because to
hide the technical details the program (when run with correct
parameters) displays nothing.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.