argv0 thanks,
looking... i found something that can help me with the COM, will deepen this unexpected topic

I find no key that refers to the number defined as "7" or "8" 's only key that comes close is StarterEdition, I should define the build manually so ... at least I think

http://www.indigorose.com/webhelp/tu/Program_Reference/Actions/System.GetOSVersionInfo.htm

This is a typical example of aliases wmiget and as seen from the evidence before the 'identifier $wmiget(Win32_OperatingSystem).CSDVersion does not work


Code:
 
;get process info about ram and virtual memory usage
;/getproc <process name>
;don't add .exe next to process name


; $wmiget comes from http://www.mircscripts.org/showdoc.php?type=code&id=3218


alias wmiget {
  var %com = cominfo, %com2 = cominfo2, %com3 = cominfo3
  if ($com(%com)) { .comclose %com }
  if ($com(%com2)) { .comclose %com2 }
  if ($com(%com3)) { .comclose %com3 }
  .comopen %com WbemScripting.SWbemLocator
  var %x = $com(%com,ConnectServer,3,dispatch* %com2), %x = $com(%com2,ExecQuery,3,bstr*,select $prop from $1,dispatch* %com3), %x = $comval(%com3,$iif($2,$2,1),$prop)
  if ($com(%com)) { .comclose %com }
  if ($com(%com2)) { .comclose %com2 }
  if ($com(%com3)) { .comclose %com3 }
  return %x
}


alias getproc { say OS: $chr(91) $+ $wmiget(Win32_OperatingSystem).Caption $+ $chr(93) Running processes: $chr(91) $+ $wmiget(Win32_OperatingSystem).NumberOfProcesses $+ $chr(93) Process Name: $chr(91) $+ $wmiget(win32_process where (description=" $+ $1 $+ .exe")).description $+ $chr(93) PID: $chr(91) $+ $wmiget(win32_process where (description=" $+ $1 $+ .exe")).ProcessId $+ $chr(93) Mem Usage: $chr(91) $+ $bytes($wmiget(win32_process where (description=" $+ $1 $+ .exe")).WorkingSetSize,m).suf $+ $chr(93) VM Size: $chr(91) $+ $bytes($wmiget(win32_process where (description=" $+ $1 $+ .exe")).VirtualSize,m).suf $+ $chr(93) VM Peak: $chr(91) $+ $bytes($wmiget(win32_process where (description=" $+ $1 $+ .exe")).PeakVirtualSize,m).suf $+ $chr(93) }


menu status,channel,nicklist,query {
  -
  Process Info
  .getProc:/getproc $$?=""
  -
}



I think leaving visible ambe two possibilities, the 'option that requires the version of Windows at least for versions 7 and 8, but at the risk of' user activate these functions incorrectly LoL

Last edited by DEATHJ0KER; 29/12/12 09:04 PM.

A Creative & Interactive mIRC Scripting