Question:
How can I turn the computer off via scripts in E3?
Solution:
You can do this by running Windows’ shutdown.exe application.
Example:
Application.ExecuteExternalApp “C:\WINDOWS\system32\shutdown.exe”, “-s”, “”, 1 'Shutdown Application.ExecuteExternalApp “C:\WINDOWS\system32\shutdown.exe”, “-r”, “”, 1 'Restart
Note: Attached to this article is a sample application developed with E3 version 3.1 build 270.