Forum Discussion
Ryan_Moran
12 years agoValued Contributor
Just threw this together real quick to provide an example so I'm sure it could be improved upon, but this should return the file version of any process. Enjoy.
wshell = new ActiveXObject('WScript.Shell');
wshell.popup(getProcessVersion('chrome'));
function getProcessVersion(processname){
var myProc = (new VBArray(Sys.FindAll('Name','*' + processname + '*',1,true))).toArray()[0];
if (aqObject.IsSupported(myProc,'FileVersionInfo')){
return myProc.FileVersionInfo
}
}