Skip to main content

Actr_Restart (function reference)

By May 1, 2022May 17th, 2022Online Help, Troi Activator Plug-in
Activator Plug-in for FileMaker Pro


Restart the computer.

SyntaxFunction badge

Actr_Restart ( switches )


switches determines the behavior of this command


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


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:

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

Other errors may be returned.

Originated in

Activator Plug-in 3.5


FileMaker Pro 16 to 19


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


Set Field [ result ; Actr_Restart ( "" ) ]

This will restart the computer.

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

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

Used in example file


Related functionsFunction badge


Related script stepScript step badge

Restart Computer

Related topics

Activator Plug-in online help (overview)

Online Help Page for Activator Plug-in for 16 to 19 –> Actr_Restart (actrp4624) 2022-0517 10:02:33