Getting PC RAM with LotusScript?

I need some lotusScript that will allow me to get the amount of RAM on a users PC. Does anyone know how to do this ? Thanks

Subject: A couple of suggestions, for large values of two…

  • Both of these will require to you to search the Forum for actual answers, they are simply things to help guide your search. Since this is LotusScript you may want to hit the R5 and R6 Forums rather than this R8.5 one; my feeling is you will have more satisfactory results there.

Search for how to call a system API. There are numerous examples at least in the R5 Forum.

  1. Windoze has an API that may be called directly to provide this information. I don’t know what it’s called, but I know it exists. Go to the MSDN web site and search the APIs to find one, then call it using LotusScript.

  2. Windoze has an API to call any program, just as if it were entered on the command line. I was going to suggest using that API to call “mem”, but that’s horribly useless (4GB RAM is reported as 15MB!). If you know of a command-line utility to report memory accurately, you can use the CreateProcessA() API to run it.

  3. Something else entirely. I assume you searched Designer Help to see if it does this for you already, so I never took that step. If you haven’t taken that step I recommend starting there before messing with system APIs.

  • Hope this helps…