Previous Topic: memoWrit--Write a String to a File (Function)Next Topic: pute--Set an Environment Variable (Function)


platform--Query Operating System Type (Function)

This function returns the type of operating system the script is currently running on.

The function has the following syntax:

platform()

The function returns the system type name in a string.

Example

Verify that a script is being run on Windows:

if(platform()!="Windows")
{
    ? "This script uses Windows specific features!"
    ? "Please run on Windows only."
    quit
}
start-service -svcName Apache2.2

See also:

shellType--Query AutoShell Type (Function)