I'm trying to write some VBScript to parse the output generated when calling unzip -l from the command line. Specifically, I want to know the date modified and name of each file from this output.
The output looks like this:
Length Date Time Name
--------- ---------- ----- ----
62208 01/12/2015 08:35 some/file/path/A file name.txt
61440 01/12/2015 09:07 some/file/path/A file name2.txt
How would I go about parsing this in VBScript so that I could store the file name and date/time within a variable? I can see s few problems arising. Firstly, I can't just parse by spaces because the file names and date modified have spaces. Secondly, if the file size is too large the entire line becomes shifted. This stops me from just pulling the info I need in by the character position.