Page 1 of 1 1
Topic Options
#182 - 1999-07-08 05:31 AM How can i check how much memory and the capacity of a hard disk is in a pc?
Anonymous
Unregistered


Does someone know how i can check with kixtart what the total memory is ?
I can checked it with the Dos command MEM -shell("command.com /C MEM")- but i want it in a variable.

Also i want to check the total hard disk capacity. getdiskspace(C:\)/1024 gives me only the free space...

It's for a little inventory of a pc.
Thanks.

------------------
-------------
Dirk Francois

Top
#183 - 1999-07-12 02:18 PM Re: How can i check how much memory and the capacity of a hard disk is in a pc?
Anonymous
Unregistered


Can't you do...

$MEM=Shell "command.com /C MEM"

and then you should be able to find the total disk space from the registry....I ahve not had time to look, but it should be in there.

Top
#184 - 1999-07-14 04:04 AM Re: How can i check how much memory and the capacity of a hard disk is in a pc?
Anonymous
Unregistered


I have try

$mem=shell "command.com /c mem"

and I got the following error:

"Script error: expected expression!"

I'm using version 3.55
What's wrong?

------------------
Luis Hevia

Top
#185 - 1999-07-14 03:34 PM Re: How can i check how much memory and the capacity of a hard disk is in a pc?
Anonymous
Unregistered


Sorry that didn't work. Try this

Shell "c:\winnt\system32\mem /c > c:\mem.txt"
OPEN(c:\mem.txt ...... etc

Basically you are creating a txt file that you can then open and read. All from Kix.
This also might be helpful for documenting your inventory.

------------------
Anthony J. Reno
renoa@rfa.org


Top
#186 - 1999-07-15 02:32 AM Re: How can i check how much memory and the capacity of a hard disk is in a pc?
Anonymous
Unregistered


I think that redirecting the output of the shell command to a variable would be a powerful feature. Does anyone knows Ruud van Velsen?

------------------
Luis Hevia

Top
#187 - 1999-07-15 10:18 AM Re: How can i check how much memory and the capacity of a hard disk is in a pc?
Anonymous
Unregistered


rkinput@microsoft.com

------------------
Anthony J. Reno
renoa@rfa.org


Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Glenn Barnas) and 1135 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.051 seconds in which 0.023 seconds were spent on a total of 11 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org