"Prepend Lines" inserts lines at the beginning of a file. Up to four different lines can be inserted, including blank lines.
Input Parameters
PrependLines_Line1 (Required) - Specifies the first line to insert into the file. This field may contain macros. Blank lines may be specified using the string "(blank)".
PrependLines_Line2 - Specifies the second line to insert into the file. This field may contain macros. Blank lines may be specified using the string "(blank)".
PrependLines_Line3 - Specifies the third line to insert into the file. This field may contain macros. Blank lines may be specified using the string "(blank)".
PrependLines_Line4 - Specifies the fourth line to insert into the file. This field may contain macros. Blank lines may be specified using the string "(blank)".
Output Parameters
PrependLines_LineCount - Returns the number of lines added by this run of PrependLines. (Could be zero or blank if an error occurs.)
Notes
Please only use the prepend operation this against text files as prepending text in a binary file could have unforeseen consequences.
This built-in script may only be run per-file. This built-in script may not be run as the first step of a task.
Example #1
Ed would like to insert a note with today's date followed by a blank line into archived log files that are moved from one server to another.
To perform this operation with MOVEit Central, Ed should...
Create a new task with a source, process, destination, and schedule.
Select "Prepend Lines" as his process
Set process parameters:
PrependLines_Line1 = "Archived log file processed on [yyyy]-[mm]-[dd]"