josephh610
asked on
How do I read in a version text string and extract each integer into a variable using batch file or vb.
How do I read in a version text string and extract each integer into a variable using batch file along with the position.
example: 3.2.13.0, 3
Need to return 13
If i pass in the version number and the position i get the integer at that position.
example: 3.2.13.0, 3
Need to return 13
If i pass in the version number and the position i get the integer at that position.
ASKER
Cool that works, how do i assign it to a variable that I can now use externally?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
However, you do not need the comma to separate the arguments.
Therefore: 3.2.13.0 3
Will return 13. (i.e. only a space, no comma).