REM John Pfeiffer 20nov07 Example of Split command and VBS Arrays
REM Split(expression[, delimiter[, count[, compare]]]
REM If expression is a zero-length string, Split returns an empty array
REM If delimiter is omitted, the " " is assumed, if a 0 length string, a single element array
REM containing the whole string is returned
REM count = # of substrings to be returned
REM compare vbBinaryCompare (0) binary comparison
REM compare vbTextCompare (1) text comparison
dim i, astring, array
astring = "this,should,be,interesting,csv,"
array = split(astring, ",")
wscript.echo astring & " becomes " & array(4) & array(3)
for i = lbound(array) to ubound(array)
wscript.echo array(i)
next
for each i in array
wscript.echo i
next