Re: Time zone information?



Well, I just think of memory in 256MB blocks, so it's either 512MB or 1GB.
That's how I'd like it to read out.

When I run Win32_PhysicalMemory I see 3 instances, 2 are RAM and the third
is the BIOS ROM, I believe. How do you separate them when summing them? I
haven't seen an obvious indicator yet. Memory type would be an obvious one
but it simply returns "Unknown" for my RAM.

Thanks,
Linn

"Alex K. Angelopoulos" <aka(at)mvps.org> wrote in message
news:edad6BsuIHA.6096@xxxxxxxxxxxxxxxxxxxxxxx
You want to use Win32_PhysicalMemory, and retrieve the Capacity for each
instances. This returns the size in bytes for each physical memory module
installed, so you need to sum the values and then divide by 1024^2 to get
the total installed memory in megabytes. I don't usually trust the System
Information applet, simply because the results it returns are often bogus.
Like that extra 0.50 MB it's showing. :)


"Linn Kubler" <lkubler@xxxxxxxxxxxxxxxxxx> wrote in message
news:#ol8MKruIHA.548@xxxxxxxxxxxxxxxxxxxxxxx
There sure seem to be a lot of them and many of them seem very similar if
not exact.

So another question then, is there a class that reports the amount of
memory? I've been looking at about 8 or 10 different classes that
adderss the memory but none of them tell me how much is present in
readable terms. You know, when you run the System Information program, it
shows Total Physical Memory as 1,024.50 MB. But I can't get this result
from any of the classes I've tested. Any thoughts on this one?

Thanks,
Linn

"Alex K. Angelopoulos" <aka(at)mvps.org> wrote in message
news:e0yhwx2tIHA.4772@xxxxxxxxxxxxxxxxxxxxxxx
Possibly because there are over a thousand WMI classes to look through.
I keep finding things I didn't know about that have been there for
_years_. ; )

"Linn Kubler" <lkubler@xxxxxxxxxxxxxxxxxx> wrote in message
news:#YQZEhctIHA.524@xxxxxxxxxxxxxxxxxxxxxxx
Yeah, that's it. I can't believe I didn't see those myself, I found a
page on Microsoft's MSDN site that lists all the Win32 classes. I just
didn't see Win32_TimeZone for some reason.

Thanks Shay and Dave for the help,
Linn

"Shay Levi" <no@xxxxxxxx> wrote in message
news:89228ed22b7d28ca83d39b95becc@xxxxxxxxxxxxxxxxxxxxx


Try this classes:

Win32_TimeZone
Win32_SystemTimeZone


---
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com

Hi,

How can I get the time zone of a computer in a script? I found the
wim32_computersystem class and it has a CurrentTimeZone function but
it returns the amount of time the computer is offset from UTC. Isn't
there a way to get "Eastern Time", "Central Standard Time", Mountain
or Pacific, like that?

Thanks in advance,
Linn








.



Relevant Pages

  • Re: Swap space
    ... > twice the amount of RAM if you need to capture a dump for debugging. ... > If you won't ever be doing that, you may not need so much swap. ... least the size of physical memory. ...
    (freebsd-questions)
  • Re: My idea of fully-portable C code
    ... unused state in the middle of a list of values will "use the least ... amount of memory possible" only by luck, ... The only thing that counts is what the code does if used within the limits you actually specified, on a random host platform implementing standard C. ...
    (comp.arch.embedded)
  • Re: Lambda Calculus and Turing Equivalence
    ... memory of a TM exceeds the potential finite memory of a PC. ... principle compute problems that require greater storage than ... That is because the tape that Turing posited has no physical constraints. ... magically given an infinite amount of storage space." ...
    (comp.theory)
  • Re: Lambda Calculus and Turing Equivalence
    ... memory of a TM exceeds the potential finite memory of a PC. ... principle compute problems that require greater storage than ... That is because the tape that Turing posited has no physical constraints. ... magically given an infinite amount of storage space." ...
    (sci.math)
  • Re: Problem - Solved - Re: Starting with Linux
    ... My laptop is a Pentium 133mz, with the 96mb RAM. ... With DMA off, you will notice some system degradation and with only ... > to 8Mb probably) further reducing the amount of system memory available. ...
    (alt.os.linux.suse)