RIFF Add

Windows 95 Only

The RIFF Add tool (RIFFADD.EXE) enables you to add text or bitmaps to resource interchange file format (RIFF) files. You can use RIFF Add in either batch mode or interactive mode. In batch mode, RIFF Add takes additions from a script file. In interactive mode, you enter additions through the user interface.

You can add text into DISP and INFO chunks, and bitmaps into DISP chunks. RIFFADD can handle text with extended characters or DBCS characters. It supports a maximum length of 512 bytes. When you type text in the edit field, press CTRL+ENTER to enter a line break. When you type text in the script, use \r\n to enter a line break.

The following is the command-line syntax for RIFFADD:

riffadd [/b script] infile outfile
 
/b script
Specifies batch mode operation and a script file. The format for the script file is provided in the following Batch Mode section. You must specify the script file using an absolute path, unless it is in the Windows directory.
infile
Specifies the filename for the input file, using a relative or an absolute path.
outfile
Specifies the filename for the output file, using a relative or an absolute path.

Batch Mode

In batch mode, RIFF Add takes additions from a script file. The following is the format of the script file:

[RIFFADD]
ChunkType=STRING, "text"
ChunkType=FILE, file

The following is a sample script file:

[RIFFADD]
ISBJ=STRING, "This is the subject."
DISP_TEXT=FILE, e:\riffadd\files\file1.txt
ITCH=STRING, "This is the technician."
ICMT=STRING, "This is one line\r\nand this is the next line."
DISP_DIB=FILE, e:\riffadd\files\dib1.dib
ICMS=FILE, e:\riffadd\files\file2.txt
IPLT=STRING, "This is the palette."

Interactive Mode

In interactive mode, RIFF Add takes additions from the user interface. Specify the chunk type using the Chunk Type drop-down list, specify text using the Text edit field, specify bitmaps using Display DIB, and specify files using the Browse button.