I am trying to get the version number from an .exe using a Shell command in one of my VB6 projects.
the code goes like this:
BoVersion = Shell("wmic datafile where name='& boPath & ' get version") BoVersionArr() = Split(BoVersion, ".") boVerYear = CStr(BoVersionArr(0)) boVerMonth = CStr(BoVersionArr(1)) boVerDay = CStr(BoVersionArr(2)) boVerMin = CStr(BoVersionArr(3))
when I run the command from CMD I get
but in the VB6 project, I try to assign this into a variable and I get the following,
Does anyone know if I can convert this into a string or how to approach this? I am trying to split this and convert it into a date format which I have working.