I tried the Runtime.exec..("systeminfo"). It gives all kind of info about the syste. However, I need to go through the stream of the command out put and look for the words, let's say, "Totol Memory Size" and check the digits after that. This way if the "systeminfo" command changes my code won't work any more. I wonder if there another way like using a dll or any other native calls.