Appendix H. Other common functions and sub routines for
Windows systems
Prerequisite Scanner has a set of other common functions and sub routines that are
used in various files..
outlines the other common functions and sub routines.
Table 37. Other common functions and sub routines for Windows systems
Function or sub routine
Description
“ffirstMatch()”
Gets the first match of the search string in
the array.
“getValue()” on page 132
Gets the available disk space for a specified
directory.
“removeSpecialCharacters()” on page 133
Removes the trademark or other special
characters to make comparisons easier.
“versionCompare()” on page 133
Parses the input parameters that represent
the actual and expected values for a
prerequisite property and compares them to
determine whether the prerequisite property
passes the prerequisite check. The function
expects dot-separated version strings as
input parameters, for example, 1.0.0.4, 2.3,
3.40.26.7800 or 2.3.*.
ffirstMatch()
Gets the first match of the search string in the array.
Purpose
This function uses a regular expression to search for the pattern, which is passed
as an input parameter, in the array that is also passed as an input parameter. When
it finds the first match of the pattern in the array, it adds the value from the array
to the scripting dictionary object.
Parent functions
Table 38. Parent functions calling ffirstMatch()
Parent Function, Script
Description
ud620db2level(expect, real)
in
DB2_Version_compare.vbs
Compares the real and expected values for
the DB2 version prerequisite property.
oslevelcompare(expect, real)
in
OS_Version_compare.vbs
Compares the real and expected values for
the OS version prerequisite property.
Syntax
ffirstmatch(patt,arr)
© Copyright IBM Corp. 2009, 2012
131
Summary of Contents for Prerequisite Scanner
Page 1: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Page 2: ......
Page 3: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Page 8: ...vi Prerequisite Scanner User s Guide ...
Page 10: ...viii Prerequisite Scanner User s Guide ...
Page 40: ...Figure 6 result txt file on Windows systems 30 Prerequisite Scanner User s Guide ...
Page 46: ...36 Prerequisite Scanner User s Guide ...
Page 68: ...58 Prerequisite Scanner User s Guide ...
Page 78: ...Figure 11 precheck log file with the debug data 68 Prerequisite Scanner User s Guide ...
Page 84: ...74 Prerequisite Scanner User s Guide ...
Page 88: ...78 Prerequisite Scanner User s Guide ...
Page 92: ...82 Prerequisite Scanner User s Guide ...
Page 116: ...106 Prerequisite Scanner User s Guide ...
Page 122: ...112 Prerequisite Scanner User s Guide ...
Page 136: ...126 Prerequisite Scanner User s Guide ...
Page 138: ...128 Prerequisite Scanner User s Guide ...
Page 140: ...130 Prerequisite Scanner User s Guide ...
Page 158: ...148 Prerequisite Scanner User s Guide ...
Page 164: ...154 Prerequisite Scanner User s Guide ...
Page 166: ...156 Prerequisite Scanner User s Guide ...
Page 170: ...160 Prerequisite Scanner User s Guide ...
Page 171: ......
Page 172: ... Printed in USA ...