home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Unsorted BBS Collection
/
thegreatunsorted.tar
/
thegreatunsorted
/
misc
/
ac.doc
< prev
next >
Wrap
Text File
|
1991-06-13
|
2KB
|
51 lines
AC.COM - AddComment Version 1.01 Released: Jun-13-91
Copyright (C) 1991 Larry Wood and Tom Potocki
AddComment takes an ASCII text file and adds it to one or more GIF87a or
GIF89a data stream files as a GIF89a Comment Extension Block. The resulting
file(s) will be a GIF89a data stream.
AC requires 2 paramaters on the commandline. The first may be a path/filename
or directory name, with wildcards supported. The extension .GIF is appended to
filenames if no extension is supplied. To defeat this, end the name with a
period "." Example: C>AC GALLAD GAL looks for GALLAD.GIF and C>AC GALLAD. GAL
looks for GALLAD. (GAL is extended to GAL.TXT as the textfile name)
The second paramater must be a path/filename. This file is expected to be an
ASCII text file. The text will be added, as a GIF89a Comment Extension Block,
to the file(s) specified by the first paramater in the commandline.
The extension .TXT is appended to this filename if no extension is supplied.
To defeat this, end the name with a period ".".
If the second paramater is not a pathname, but only a filename, it's default
directory is assumed to be the same as the directory of the first paramater.
AC assumes the GIF file is a valid GIF data stream, with no leading or trailing
bytes. No Error checking at all is done on the data stream. Use QCHK on all
files to be modified by AC to avoid problems.
Example commandlines:
C>AC C: GAL
This will add the text in GAL.TXT, in the default directory of drive C, to
all *.GIF files in the default directory of drive C.
C>AC D:\DYAN GNET
This will add the text in D:\DYAN\GNET.TXT to all *.GIF files in the \DYAN
directory of drive D.
C>AC D:\DYAN B:GNET
This will add the text in GNET.TXT, in the default directory of drive B, to
all *.GIF files in the \DYAN directory of drive D.
C>AC D:\DG*.GIF B:GNET.ASC
This will add the text in GNET.ASC, in the default directory of drive B, to
all .GIF files, begining with DG, in the root directory of drive D.
When AC modifies a file, it renames it with BAK as the extension and writes
to a new file. Before doing so it checks for sufficient disk space. If not
enough space is available the mod is aborted and a message telling same is
issued. If all goes well the BAK file is deleted. If all does not go well the
original file still exists but with BAK as its extension.