Appendix E. Common functions for Windows systems
Prerequisite Scanner has a set of common functions in the
/lib/
common_function.vbs
file for running checks on Windows systems.
Table 32. Functions in common_function.vbs
Function
Description
“allFiles()” on page 114
Reads the file names in a specified directory
into an array.
“arrayToString()” on page 114
Creates a string representation for the array.
“bigthan()” on page 115
Calculates the difference between the
expected and actual value of the prerequisite
property if that prerequisite property is a
size in MBs or GBs.
“changeMG()” on page 115
Converts the input parameter to MBs or GBs
for disk space or memory prerequisite
properties.
“checkItemToString()” on page 116
Creates a string representation for the
CheckItem object.
“dictionaryToString()” on page 116
Creates a string representation for the
scripting dictionary object.
“exeCommand()” on page 117
Executes the specified command and returns
the result from that command's execution.
“filterCommand()” on page 117
Executes the specified command and returns
the lines from the result of the command
that match the specified pattern.
“filterFile()” on page 118
Reads and filters the contents of a file to a
scripting dictionary object.
“findNewest()” on page 118
Finds the latest configuration file.
“findSuitableFile()” on page 119
Finds the relevant configuration file for a
product and version.
“fmt()” on page 120
Modifies a string by adding a specified
number of characters from another string to
it and padding the other string with space
characters if the length of the other string is
too short or truncating the other string if it
is too long.
“formatForDisplay()” on page 120
Formats the input parameter to make it
readable.
“formatSizeForDisplay()” on page 121
Takes the input parameter and appends or
trims the fractional part of the input
parameter to two decimal points, for
example, 123MB to 123.00MB or 12.123MBs
to 12.12MBs.
“getDecimalSeparator()” on page 121
Determines the decimal separator that is
used for the current locale.
“getFirstMatch()” on page 121
Gets the first match of the search string in
the array.
© Copyright IBM Corp. 2009, 2012
113
Содержание Prerequisite Scanner
Страница 1: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Страница 2: ......
Страница 3: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Страница 8: ...vi Prerequisite Scanner User s Guide ...
Страница 10: ...viii Prerequisite Scanner User s Guide ...
Страница 40: ...Figure 6 result txt file on Windows systems 30 Prerequisite Scanner User s Guide ...
Страница 46: ...36 Prerequisite Scanner User s Guide ...
Страница 68: ...58 Prerequisite Scanner User s Guide ...
Страница 78: ...Figure 11 precheck log file with the debug data 68 Prerequisite Scanner User s Guide ...
Страница 84: ...74 Prerequisite Scanner User s Guide ...
Страница 88: ...78 Prerequisite Scanner User s Guide ...
Страница 92: ...82 Prerequisite Scanner User s Guide ...
Страница 116: ...106 Prerequisite Scanner User s Guide ...
Страница 122: ...112 Prerequisite Scanner User s Guide ...
Страница 136: ...126 Prerequisite Scanner User s Guide ...
Страница 138: ...128 Prerequisite Scanner User s Guide ...
Страница 140: ...130 Prerequisite Scanner User s Guide ...
Страница 158: ...148 Prerequisite Scanner User s Guide ...
Страница 164: ...154 Prerequisite Scanner User s Guide ...
Страница 166: ...156 Prerequisite Scanner User s Guide ...
Страница 170: ...160 Prerequisite Scanner User s Guide ...
Страница 171: ......
Страница 172: ... Printed in USA ...