Appendix G. File utility sub routines for Windows systems
Prerequisite Scanner has a set of common file sub routines in the
/lib/
common_function.vbs
file to handle files. It also has a set of functions for handling
files.
Table 35 describes the file utilities.
Table 35. File utility sub routines
Sub routine
Description
Input parameters
appendToFile(text,
fileName)
Appends the text to the end of the
specified file.
v
text
, a string that contains the text to
append to the file
v
filename
, a string that represents the
name of the file to modify
writeToFile(text,
fileName)
Writes the text to the specified file,
overwriting the existing contents if
necessary.
v
text
, a string that contains the text to
write to the file
v
filename
, a string that represents the
name of the file to modify
Table 36 outlines the file functions that handle files.
Table 36. File utility functions
Function
Description
“allFiles()” on page 114
Reads the file names in a specified directory
into an array.
“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.
“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.
© Copyright IBM Corp. 2009, 2012
129
Содержание 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 ...