CPUInfo plugin for Take Command / TCC / TCC/LE
beta version 0.24.0 2023-10-18
Charles Dye
Purpose:
This plugin provides several new variables which report information about the CPU.
Installation:
To use this plugin, copy CPUInfo.dll to
some known location on your hard drive. (If you are still using the 32-bit
version of Take Command, take CPUInfo-x86.dll
instead of CPUInfo.dll.) Load the plugin
with a PLUGIN /L
command, for example:
plugin /l c:\bin\tcmd\test\cpuinfo.dll
If you copy this file to a subdirectory named PlugIns within your Take Command program directory, the plugin will be loaded automatically when TCC starts.
Plugin Features:
New variables: _CPUBRAND
,
_CPUCORES
,
_CPUFPU
, _CPUID
,
_CPUMMX
, _CPUPAE
,
_CPUTSC
, _CPUX64
,
_RAM
, _RDTSC
New Variables:
_CPUBRAND
— Returns the
CPU’s brand string.
Syntax:
%_CPUBRAND
If the CPU does not support this feature, _CPUBRAND
will return
the string N/A
.
_CPUCORES
— Return the number
of virtual processors.
Syntax:
%_CPUCORES
This variable just returns the dwNumberOfProcessors
value reported by
GetSystemInfo().
_CPUFPU
— Returns 1 if the
CPU has built-in floating support, 0 if not.
Syntax:
%_CPUFPU
_CPUID
— Returns the
CPU’s ID string.
Syntax:
%_CPUID
If the CPU does not support this feature, _CPUID
will return
the string N/A
.
_CPUMMX
— Returns 1 if the
CPU supports MMX instructions, 0 if not.
Syntax:
%_CPUMMX
_CPUPAE
— Returns 1 if the
CPU physical address extension, 0 if not.
Syntax:
%_CPUPAE
_CPUTSC
— Returns 1 if the
CPU includes a Time Stamp Counter, 0 if not.
Syntax:
%_CPUTSC
_CPUX64
— Returns 1 if the
CPU supports 64-bit addressing, 0 if not.
Syntax:
%_CPUX64
_RAM
— Returns the system
memory size, in megabytes.
Syntax:
%_RAM
This variable is equivalent to %@EVAL[%@WINMEMORY[1] \ 1048576]
.
It’s just for convenience when you don’t need granularity to the
byte.
_RDTSC
— Returns the current
value of the Time Stamp Counter.
Syntax:
%_RDTSC
If the CPU does not support this feature, _RDTSC
returns 0.
Startup Message:
This plugin displays an informational line when it initializes. The
message will be suppressed in transient or pipe shells. You can disable it
for all shells by defining an environment variable named NOLOADMSG
,
for example:
set /e /u noloadmsg=1
Status and Licensing:
Consider this beta software. It may well have issues. Try it at your own risk. If you find a problem, you can report it in the JP Software support forum.
CPUInfo is currently licensed only for testing purposes. I may make binaries and source code available under some free license once I consider it ready for use.
Download:
You can download the current version of the plugin from http://charlesdye.net/dl/cpuinfo.zip.