"VersionInfo" property works differently under x86 and x64
mighty all!
i'm stuck trying figure out why
"(get-childitem -path $env:windir\system32\macromed\flash\*.exe | % {(($_.versioninfo).fileversion).replace(",",".")}|measure -maximum).maximum"
works ok on x86 system whereas
"(get-childitem -path $env:windir\syswow64\macromed\flash\*.exe | % {(($_.versioninfo).fileversion).replace(",",".")}|measure -maximum).maximum"
fails on x64 system "input object not numeric"??
any appreciated!!
ha! found reason: x64 systems on ps v2, whereas x86 systems have ps v3...
Windows Server > Windows PowerShell
Comments
Post a Comment