Actr_Shutdown (function reference)

Activator Plug-in for FileMaker Pro

Actr_Shutdown

Shutdown the computer.

SyntaxFunction badge

Actr_Shutdown ( switches )

Parameters

switchesdetermine the behavior of this command

Switches

switches can be left empty or set to this:

-Force(currently Windows only) force other running applications to close

Returned Result

Data type returned

Error code

Result

The returned result is an error code. If successful it returns 0. An error always starts with 2 dollars, followed by the error code. You should always check for errors. Returned error codes can be:

0no error
$$-50parameter error, check if your parameters are correct

Other errors may be returned.

Originated in

Activator Plug-in 3.6

Compatibility

FileMaker Pro 12 to 16

Considerations

If you don’t specify the -Force switch the computer may not shutdown, because of other programs not closing.
There is a 20 second delay before the shutdown starts.
The -Force switch currently does not have any effect on Mac OS.

Example

Set Field [ result ; Actr_Shutdown ( "" ) ]

This will shutdown the computer.

Set Field [ result ; Actr_Shutdown ( "-force" ) ]

This will shutdown the computer, forcing all programs to close.

Related functionsFunction badge

Actr_Restart
Actr_Sleep

Related topics

Activator Plug-in online help (overview)


Online Help Page for Activator Plug-in for 12 to 16 –> Actr_Shutdown (actrp4623) 2017-0822 17:54:52