<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic JSL: Open a VBS script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Open-a-VBS-script/m-p/36330#M21345</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to start a .vbs (visual basic script) from a jsl-script?&lt;/P&gt;&lt;P&gt;It is possible if I make an .exe file from the vbs and run it with Run Program(), but due to tech reasons, I prefer to run the actual .vbs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Run Program (Executable("c:\path\VbsAsExe.exe"));&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 23:23:35 GMT</pubDate>
    <dc:creator>jan_solo</dc:creator>
    <dc:date>2023-06-09T23:23:35Z</dc:date>
    <item>
      <title>JSL: Open a VBS script</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Open-a-VBS-script/m-p/36330#M21345</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to start a .vbs (visual basic script) from a jsl-script?&lt;/P&gt;&lt;P&gt;It is possible if I make an .exe file from the vbs and run it with Run Program(), but due to tech reasons, I prefer to run the actual .vbs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Run Program (Executable("c:\path\VbsAsExe.exe"));&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:23:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Open-a-VBS-script/m-p/36330#M21345</guid>
      <dc:creator>jan_solo</dc:creator>
      <dc:date>2023-06-09T23:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Open a VBS script</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Open-a-VBS-script/m-p/36336#M21350</link>
      <description>&lt;P&gt;You can use either the WScript or CScript executables to run a VBScript file using RunProgram. The only difference is that WScript will show errors in a MessageBox, whereas CScript writes the error to the console/stdout.&lt;/P&gt;
&lt;P&gt;Here is an example using CScript.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;rp = RunProgram( Executable( "CSCRIPT.EXE" ), Options( "\!"C:\runMe.vbs\!"" ), Read Function( "text" ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Feb 2017 15:46:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Open-a-VBS-script/m-p/36336#M21350</guid>
      <dc:creator>Justin_Chilton</dc:creator>
      <dc:date>2017-02-24T15:46:06Z</dc:date>
    </item>
  </channel>
</rss>

