The global struct called systemTools was added to MAXScript in 3ds Max 4 and was extended in 3ds Max 2008 and 3ds Max 2014.
This group of functions lets you gather various pieces of information about the system 3ds Max is running on.
Returns the number of processors (cores) available according to the operating system.
Returns the screen width including multiple monitors the desktop might be extended to.
Returns the screen height including multiple monitors the desktop might be extended to.
Returns True if the Operating System is Windows98, Windows2000, Windows XP, Windows Vista or Windows 7.
Returns True if the OS is a Win9x flavor.
Returns True if running in a Debugger.
Returns the contents of specified environment variable. If the specified environment variable does not exist, returns a value of undefined.
Available in 3ds Max 2008 and higher. Previously available in the Avguard Extensions.
Sets the contents of specified environment variable.
Returns True if the set occurred, False if not.
If the second argument is the value undefined, the environment variable is deleted.
Available in 3ds Max 2008 and higher. Previously available in the Avguard Extensions.
<int>systemTools.getmaxstdio()
Returns the number of simultaneously open files permitted at the stdio level (i.e. via fopen).
Available in 3ds Max 2014 and higher.
<int>systemTools.setmaxstdio <int newmax>
Sets the maximum number of simultaneously open files at the stdio level (i.e. via fopen).
The valid range for the newmax argument is between 512 and 2048.
Returns the new maximum value if successful.
Currently, only increasing the value is allowed.
Returns -1 if attempting to reduce the maximum count.
This could be used for example to allow more Point Cache files to be read in parallel at the same time.
Available in 3ds Max 2014 and higher.