<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Start a VBScript from code</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ccacc372a4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ccacc372a4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/ccacc372a4/</id><updated>2020-02-27T15:15:49.791000Z</updated><subtitle>Recent posts to Start a VBScript from code</subtitle><entry><title>Start a VBScript from code</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ccacc372a4/?limit=25#b9c1" rel="alternate"/><published>2020-02-27T15:15:49.791000Z</published><updated>2020-02-27T15:15:49.791000Z</updated><author><name>sbiughy</name><uri>https://forge.codesys.com/u/sbiughy/</uri></author><id>https://forge.codesys.comd40ae8b2aad8de631169189f1382424f0970231b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have done this procedure, and I don't know why, but if I keep the service in debug mode the script works.&lt;br/&gt;
Whitout the "-d" parameter the service doesn't work&lt;br/&gt;
Launching the script in debug mode doesn't generate any verbose message on debug panel.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Start a VBScript from code</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ccacc372a4/?limit=25#9da1" rel="alternate"/><published>2020-02-27T15:15:47.891000Z</published><updated>2020-02-27T15:15:47.891000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com1a0347eb9ae54c52efc86278935c5ce616f896f2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;stop the plc by tasktray, then execute the Control Win in debug mode:&lt;br/&gt;
c:\Program Files (x86)\3S CODESYS\GatewayPLC\CODESYSControlService.exe -d&lt;br/&gt;
check the the log there if you execute your script&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Start a VBScript from code</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ccacc372a4/?limit=25#e637" rel="alternate"/><published>2020-02-27T15:15:47.202000Z</published><updated>2020-02-27T15:15:47.202000Z</updated><author><name>sbiughy</name><uri>https://forge.codesys.com/u/sbiughy/</uri></author><id>https://forge.codesys.com6eff3cc978387c81ae4a4ed1c7261de5fa6f005b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have attached the vbscript that I want to execute (I have modified the extension from .vbs to .txt due to forum restriction)&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=3273" rel="nofollow"&gt;SendMailCopy.txt &lt;span&gt;&lt;span&gt;[2.61 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Start a VBScript from code</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ccacc372a4/?limit=25#71a8" rel="alternate"/><published>2020-02-27T15:15:45.378000Z</published><updated>2020-02-27T15:15:45.378000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com4941ecd9c4cbcf3687d3e6aebfa915cdabdf8039</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
and copy your script which you want to execute to the runtime directory.&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Start a VBScript from code</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ccacc372a4/?limit=25#2b33" rel="alternate"/><published>2020-02-27T15:15:44.761000Z</published><updated>2020-02-27T15:15:44.761000Z</updated><author><name>sbiughy</name><uri>https://forge.codesys.com/u/sbiughy/</uri></author><id>https://forge.codesys.com3a5c94150a2e5312f1dbe354ee44da6a2dc1ce9d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;using the "SysProcess._" function I got 1 as Result&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Start a VBScript from code</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ccacc372a4/?limit=25#8c95" rel="alternate"/><published>2020-02-27T15:15:44.132000Z</published><updated>2020-02-27T15:15:44.132000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com4bbd6f7ef0aca762808024cd792213a164933cf2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I would try:&lt;/p&gt;
&lt;p&gt;and check the reaturn value.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: SysProcess2.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3272"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Start a VBScript from code</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ccacc372a4/?limit=25#18bd" rel="alternate"/><published>2020-02-27T15:15:42.342000Z</published><updated>2020-02-27T15:15:42.342000Z</updated><author><name>sbiughy</name><uri>https://forge.codesys.com/u/sbiughy/</uri></author><id>https://forge.codesys.comcef93cbb71622502136f23b05eef3313698a1b03</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Any Suggestion?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Start a VBScript from code</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ccacc372a4/?limit=25#9148" rel="alternate"/><published>2020-02-27T15:15:41.689000Z</published><updated>2020-02-27T15:15:41.689000Z</updated><author><name>sbiughy</name><uri>https://forge.codesys.com/u/sbiughy/</uri></author><id>https://forge.codesys.com79e5a739af2d91a6b22b24011f05b4f388c69abe</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;On CODESYSControl.cfg I have this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
&lt;span&gt;[SysProcess]&lt;/span&gt;&lt;br/&gt;
BasePriority=Realtime&lt;br/&gt;
Command=AllowAll&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Using Codesys 3.5 SP9 Patch8, I have tryed SysProcess library 3.5.7.0 and SyOS23 3.5.8.0 library but each time I can see that starts wscript.exe but is not executed the code inside the script (using the prompt works, so the vbs script is ok).&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Start a VBScript from code</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ccacc372a4/?limit=25#bf7c" rel="alternate"/><published>2020-02-27T15:15:40.930000Z</published><updated>2020-02-27T15:15:40.930000Z</updated><author><name>sbiughy</name><uri>https://forge.codesys.com/u/sbiughy/</uri></author><id>https://forge.codesys.com3f7d6eeea70f4700ac9a0a8f20af1b2dec97649f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for replay,&lt;br/&gt;
I am using a Codesys Control Win V3 on a PC&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Start a VBScript from code</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ccacc372a4/?limit=25#9b69" rel="alternate"/><published>2020-02-27T15:15:38.915000Z</published><updated>2020-02-27T15:15:38.915000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com8a13a3af952a6eaaf99317defed17f539071679d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
which plc are you using?&lt;br/&gt;
Guess an entry in CODESYSControl.cfg&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysProcess]&lt;/span&gt; &lt;br/&gt;
Command.0=xxxxx&lt;br/&gt;
is probably needed.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>