Table 32. Functions in common_function.vbs (continued)
Function
Description
“isMatch()” on page 122
Checks whether the search pattern is in the
string.
“notInLatter()” on page 122
Filters the first array to determine whether
the content is in the second array.
Depending upon the value of the
in_or_not
input parameter, the function returns the
contents of first array including or excluding
what matched with the second array.
“passOrFail()” on page 123
Compares the expected and actual values of
the prerequisite property and determines
whether the prerequisite property passes the
check. The input parameters can be generic
numbers, size in MBs or GBs, CPU speed in
MHz or GHz, boolean, or strings.
“ppread()” on page 124
Reads the contents of a file to a scripting
dictionary object, further splitting each line
in the file by the specified separator input
parameter if that separator exists in the line.
“readFile()” on page 124
Reads each line of a file into an index entry
of an array.
“unitMGTOG()” on page 125
Adds together the contents of an array to
obtain the total number of MBs.
“varToString()” on page 125
Creates a string representation of a variable.
The variable to check can be a string,
number, scripting dictionary object, array, or
CheckItem object.
allFiles()
Reads the file names in a specified directory into an array.
Purpose
This function gets the list of files in the directory input parameter and adds them
to the array. It returns the array.
Syntax
allFiles(filepath)
Input parameters
String
filepath
The path to the directory that contains the files.
Return values
Array
fileNames
Returns the array containing the file names in the specified directory.
arrayToString()
Creates a string representation for the array.
114
Prerequisite Scanner: User's Guide
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 ...