#41414 - 2003-06-11 09:55 PM
Memory and Hard Disk
|
Deniz
Fresh Scripter
Registered: 2003-06-11
Posts: 11
Loc: Brazil
|
Hello everyone ! I am new using Kixtart, but already a huge fan. I just made up a script to inventory something at my workstations. I found out the variable @CPU. I'd like to know if there is a variable for memory and hard disk. I didnt find them.
Thank you All
_________________________
Deniz Feital
|
|
Top
|
|
|
|
#41416 - 2003-06-11 10:08 PM
Re: Memory and Hard Disk
|
Deniz
Fresh Scripter
Registered: 2003-06-11
Posts: 11
Loc: Brazil
|
Thanks Chris !
I'll try to understand the command you talked about.
My script is something like this:
$Var = 01
IF Open( 3 , "\\spohs01\viruslog\estacoes.txt" , 5 ) = 0 $x = WriteLine(3 , "SO" + "," + $Var + "," + @WKSTA + "," + @USERID + "," + @MDAYNO + "," + @MONTHNO + "," + @YEAR + "," + @PRODUCTTYPE + "," + Chr(13) + Chr(10))
I was hopping to find a variable for memory to put in this script. Can I use the value you told me before?
Best regards, thank you for so fast reply.
_________________________
Deniz Feital
|
|
Top
|
|
|
|
#41417 - 2003-06-11 10:12 PM
Re: Memory and Hard Disk
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Search your manual for:
code:
MEMORYSIZE Action Returns memory statistics, in Megabytes.
Syntax MEMORYSIZE (type)
Parameter Type Optional number, indicating the type of memory you want statistics on. Possible values:
0 Total physical memory (default) 1 Available physical memory 2 Total size of pagefile 3 Available space in pagefile
Returns The amount of memory, in Megabytes.
Example $x = MemorySize()
This is from the 4.21 manual.
|
|
Top
|
|
|
|
#41418 - 2003-06-11 10:22 PM
Re: Memory and Hard Disk
|
Deniz
Fresh Scripter
Registered: 2003-06-11
Posts: 11
Loc: Brazil
|
Thanks Chris.
I was hopping a value @-like.
But this will help for sure.
Best Regards.
_________________________
Deniz Feital
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 1607 anonymous users online.
|
|
|