Generate ID (-GENID)

Use the Generate ID adapter command (-GENID) to return a unique ID. Its primary purpose being for Content-ID attributes.

The command uses a file to track the current ID, and serializes access to this file. The file contains a single number which is incremented with each call to the adapter with the -GENID command.

The -GENID cannot be used with any other adapter commands.

This is an optional command.


-GENID [filename]

where filename is the file used to track the current ID. The filename is optional and if not specified, defaults to install_dir\genid.dat.

For example, to generate a unique ID for a Content-ID:


ContentID = " ContextSensitiveStem " + GET("MIME", "-GENID 
 c:\genid.dat ")