Parsing Passed Text into an Array
In this example, you work through a script that creates a dynamic array used to hold information parsed from the Windows 2003 setup log file, Setuplog.txt. One issue to note: if you’re working on an upgraded version of Windows 2003, your Setuplog.txt file is contained in the WINNT directory. If you’re working with a fresh installation, the Setuplog.txt file is contained in the Windows directory. The reason for this is that beginning with Microsoft Windows XP, the name of the default Windows directory was changed from WINNT to Windows. However, in an upgrade, the Windows directory cannot be renamed without breaking a whole bunch of applications.
In our script called SearchTXT.vbs (which is on the companion CD), ...
Get Microsoft® Windows® Scripting Self-Paced Learning Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.