Restart Computer (script step reference)

Activator Plug-in for FileMaker Pro

Restart Computer

Restart the computer.

SyntaxScript step badge

Restart Computer [ Select ; Result (error) ; Force restart ]

Options

Select entire contentsreplaces the entire contents of a field with the result. If not checked the result replaces the currently selected portion of the field
Result (error)an error code
Force restart(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 errorcheck if your parameters are correct

Other errors may be returned.

Originated in

Activator Plug-in 4.5

Compatibility

FileMaker Pro 16

Considerations

If you don’t specify the Force restart option 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 restart option currently does not have any effect on Mac OS.

Example

Restart Computer [ Select ; Result ]

This will restart the computer.

Restart Computer [ Select ; Result ; Force restart ]

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

Related script stepsScript step badge

Put Computer to Sleep
Shutdown Computer

Related functionFunction badge

Actr_Restart

Related topics

Activator Plug-in online help (overview)


Online Help Page for Activator Plug-in for 12 to 16 –> Restart Computer (actrp7624) 2017-0831 12:48:21