<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged activexobject</title>
<link>https://overflow.efficy.io/?qa=tag/activexobject</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to best launch command line request?</title>
<link>https://overflow.efficy.io/?qa=4007/how-to-best-launch-command-line-request</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;For a client that uses Efficy 10.2, there is already a sync in place between Efficy and their erp software &quot;Talk&quot;. &lt;/p&gt;

&lt;p&gt;There is a functionality to launch the Talk GUI in Efficy by pressing a button on the relevant contact/company consultation window.&lt;/p&gt;

&lt;p&gt;This works fine in IE, but not in for example Chrome. I found that this is due to the use of the ActiveXObject.&lt;/p&gt;

&lt;p&gt;What would be a better way to realize this so that all browser can support this functionality? I provided a part of the code below.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function InformNewTalk(Params) {
    var RunStr = &quot;&quot;;
    try {
        RunStr += &quot;cmd /K C: &amp;amp; CD c:\\Talkv3_speed\\ &amp;amp; &quot;
        RunStr += &quot;start &quot; + Params.replace(/\==/g,&quot;//&quot;)
        RunStr += &quot; &amp;amp; exit&quot;;
        var w = new ActiveXObject(&quot;WScript.Shell&quot;);

        w.run(RunStr);
    } catch (ex) {
        alert(RunStr.replace(/\&quot;/g,&quot;&quot;) + &quot;\nError:\n&quot; + ex.message);
        return false;
    }
    return true;
}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4007/how-to-best-launch-command-line-request</guid>
<pubDate>Wed, 06 Mar 2019 13:45:46 +0000</pubDate>
</item>
</channel>
</rss>