Program Requires Manifest

From GAB Help
Jump to: navigation, search

A List of Items that must be present to run a script

Manifest File Example

  • !*G*!*V*!*1010222 This makes sure that GAB version 1.1.222 or higher is used
  • !*G*!*G*!* This makes sure that GAB is running with a Global Shop signature

Hook01*!*P2*!*D*!*20071118 this makes sure that Hook01 is in the Programs directory with a date of 11-18-2007 or later.

Delimit the lines with *!*

Line Layout Arguments

Filename*!*Type*!*Property*!*Data

Line Layout Arguments

Filename – Name of file looking for

Type – S0, P1, P2, R0, F0, G (Sp2, Plugins, Programs, Busint, Files, and GAB, respectively)

Property – D, S, G, V (Date, Size, Version, Global Signature)

Data – Date (“YYYYMMDD” format), Size (in Bytes), Version (MmmRRRR)

Add

Adds a Manifest to the GAB GAS file

Syntax

Program.Requires.Manifest.Add(Manifest File Name)

Arguments

FQ Manifest FileName Fully Qualified path or File Name to required program

Example

Program.Requires.Manifest.Add (“C:\Global\Plugins\GAB\GAS\Test.Manifest”)

Or

Program.Requires.Manifest.Add (“Test.Manifest”)

(Will look for the Manifest file in the GAB\Gas directory)

Remarks

Check

Checks to make sure that Items in the Manifest Added are there.

Syntax

Program.Requires.Manifest.Check()

Arguments

FileName Program, Filename

Type S0, P1, P2, R0, F0 (SP2, Plugins, Programs, Busint, and Files Directory, respectively)

Property D or S (for Date or Size)

Data date (in YYYYMMDD format), or size (in bytes)

Example

Program.Requires.Manifest.Add (“Test.Manifest”)

Program.Requires.Manifest.Check

Remarks