Functions for dealing with system information. User beware, these can be flakey and hard to use.
MakeSysInfoFile
and returns a report using GetSysInfoFromFile
.
MakeSysInfoFile
.
Gets how much free space is available on a drive. Note: this will briefly pop up a DOS window.
The bytes of free space on the specified drive AS A STRING, or undefined on failure.
The return value is a string to avoid overflow issues.
<driveLetter>
Gets the processor name of the current machine (ie. "Pentium", "Dual Pentium Pro", etc)
The name of the processor as a string if possible, otherwise "Unknown Processor".
<procCount>
<procFamily>
<procModel>
Creates a SysInfo file using MakeSysInfoFile
and returns a report using GetSysInfoFromFile
NOTE: The same warning for MakeSysInfoFile
applies to this function.
The same thing as GetSysInfoFromFile
.
Parses select info out of a SysInfo file created by MakeSysInfoFile
.
An array of information, retrieved using other GetSysInfo...
functions, or undefined on failure. Currently, the array holds the equivelent of:
#(
ComputerNameString,
(GetSysInfoProcessors()),
(GetSysInfoPhysicalMemory()),
)
Gets info about system memory from a file created by WinMSD.
An integer value of the amount of RAM (in KB) in the system, or 0 on failure.
<sysInfoFile>
GetSysInfoFile
.
Gets info about system processors from a file created by WinMSD.
An array of arrays, one for each processor found, or an empty array on failure.
Each array holds four integers:
ar[1]: the (approximate) speed of the processor
ar[2]: the processor family
ar[3]: the processor model
ar[4]: the processor stepping
<sysInfoFile>
GetSysInfoFile
.
Creates a system info file using WinMSD.
NOTE: This is a cheap hack, and should be avoided when possible. It must be customized to the system it is run on, and can potentially hang the system for up to a minute.
A filename string pointing to the file created by WinMSD report feature, or undefined on failure.
Prints out the status of all the machines listed in the ServerStats INI file.
If there is a "*" in the first column, then that machine's info is possibly out of date. The info can be updated by running ServerStats.UpdateServerInfo "machineName"
from that machine.
OK
[sortBy:#serverName]
#serverName
#processorSpeed
#physicalMemory
Holds information about a render server. Use ServerList.GetServerInfo() to get one filled out. This struct is pretty specialized, and should be used with caution.
serverName:""
infoVersion:0
numProcessors:0
processorSpeed:0
processorFamily:0
processorModel:0
physicalMemory:0
lockID:0
Read and update render server information held in an INI file. This struct is pretty specialized, and should be used with caution.
serverListFile:"R:\MAX3master\ServerList.ini"
GetMasterInfoVersion
GetServerCount
SetServerCount
GetServerName <i>
AddServer <serverName>
GetServerInfo <serverName>
UpdateServerInfo <serverName>