System Functions in DIAL

The system functions in DIAL perform miscellaneous system tasks.

System Example

The following example demonstrates the system function usage.

// Check if the first argument after the script name is "Yes"

// If it is not, exit the script with a return code of "-1"

if(arg.get(1) != "Yes")

{

console.writeln ("I will stop");

system.exit(-1);

}

// If the argument is "Yes", run the specified command

console.writeln ("I will continue processing");

system.execute("explorer.exe");