B ARRAY AND HASH TABLE OBJECTS
In Chapter 29, I demonstrated how to build, access, and update arrays and hash tables. These data structures, not often associated with bat files, are great applications of the equally atypical real-world Batch objects discussed in Chapter 33.
In this appendix, I’ll bring these concepts together by presenting a well-commented object bat file for each data structure.
The Array Object
Here are the full contents of the array object, oArray.bat:
:: ****** Array Object ******
:: Parm 1 – Name of Array
:: Parm 2 - Name of Method:
:: AddElemAt - Insert One Element at an Index
:: Parm 3 - Index of Element being Added ...
Get The Book of Batch Scripting 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.