<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Shutdown Windows from Control RTE SL</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f181b41237/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f181b41237/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/f181b41237/</id><updated>2022-05-08T20:41:49.812000Z</updated><subtitle>Recent posts to Shutdown Windows from Control RTE SL</subtitle><entry><title>Shutdown Windows from Control RTE SL</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f181b41237/?limit=25#1082" rel="alternate"/><published>2022-05-08T20:41:49.812000Z</published><updated>2022-05-08T20:41:49.812000Z</updated><author><name>John Martin</name><uri>https://forge.codesys.com/u/john-martin/</uri></author><id>https://forge.codesys.comfbcfb8f33a9a66e286b05cd6465fa4b81a75082a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;For other users, this is the code I use with Control RTE SL to shutdown windows.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;PROGRAM PLC_PRG&lt;/span&gt;
&lt;span class="err"&gt;VAR&lt;/span&gt;
&lt;span class="err"&gt;    xShutdown: BOOL;&lt;/span&gt;
&lt;span class="err"&gt;    Result: RTS_IEC_RESULT;&lt;/span&gt;
&lt;span class="err"&gt;END_VAR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;IF xShutdown THEN&lt;/span&gt;
&lt;span class="err"&gt;   SysProcess.SysProcessExecuteCommand('shutdown -s -t 1', ADR(Result));&lt;/span&gt;
&lt;span class="err"&gt;   xShutdown := FALSE;&lt;/span&gt;
&lt;span class="err"&gt;END_IF&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;And that's all.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Shutdown Windows from Control RTE SL</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f181b41237/?limit=25#4599" rel="alternate"/><published>2022-05-08T18:24:11.473000Z</published><updated>2022-05-08T18:24:11.473000Z</updated><author><name>John Martin</name><uri>https://forge.codesys.com/u/john-martin/</uri></author><id>https://forge.codesys.com4187988bdc53df17a992036e229f5e09afa365b2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ok, I found the solution in this post:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://forge.codesys.com/forge/talk/Runtime/thread/e4292b47c7/"&gt;https://forge.codesys.com/forge/talk/Runtime/thread/e4292b47c7/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Anyway, thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Shutdown Windows from Control RTE SL</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f181b41237/?limit=25#3b03" rel="alternate"/><published>2022-05-08T18:16:49.256000Z</published><updated>2022-05-08T18:16:49.256000Z</updated><author><name>John Martin</name><uri>https://forge.codesys.com/u/john-martin/</uri></author><id>https://forge.codesys.com5c647036cd9b2a23d1872d4347a628b67e4ec9dd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everybody,&lt;/p&gt;
&lt;p&gt;is there any way to shutdown windows 10 from Control RTE? &lt;br/&gt;
For example, a simple button when I press it, shutdown windows.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>