You can read it from the registry HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\... Use the RegitryList to get all subkeys and then Right to the last number in the returned list : Is there a method in JAL to count the number of CPU's on a machine? : We're executing a program from a 24x7 job and run BindCPU to bind it to all : CPU's on a machine. We now want to use Remote Agents and we might not know : the CPU count of the machine it's going to execute on before it actually : executes. : Therefore I want to write some JAL script that can work out the correct CPU : mask for BindCPU but I can't find a JAL method to count them. : Thanks in advance. : Duncan
|