The Archive.exe utility allows a File Integration Process (IP) to save a
record of file for a specified number of days.
To use Archive.exe
In Step 2 of the Add New Integration Process Wizard, add the following
information in under Run this command
AFTER the job runs:
In Post job command, enter the full pathname of the archive.exe file.
Note: The default
pathname is C:\Program Files\Scribe\Utilities\Archive.exe
In Post job parameters,
enter the following:
%Filename [ArchiveDir
] [LifeSpan]
Where:
%Filename
— The name of the file you want to archive. The filename is the
full path and filename of the event file.
ArchiveDir
— Optional. Specifies the output folder for the
event file. If left blank, Archive.exe creates a subfolder in the current
location of the event file. If the parameter is specified, ArchiveDir must
include a path and foldername. If the folder doesn't exist, it is created.
LifeSpan — Optional. The
number of days that files are kept in the archive before Insight deletes them.
The default lifespan is 30 days.
If duplicate files are found in the Archive folder, they
are numbered FileName.xml, FileName(1).xml FileName(2).xml and so on.
An error code of -1, which sends an error to the IP, is returned on all errors except file
deletes. Archive.exe does not consider a failed delete an error.
Example:
If Insight is installed in C:\Program Files\Scribe, enter the following
information in Step 2 of the Add New Integration Process Wizard to save
the archive files in D:\Scribe Jobs\EventFiles\Archive for 60 days: