KB-13400: Windows Shutdown via E3.

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.

Attachments:

AppShutdown.zip

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *