<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Opening Files on a Server and on the PC</title><link>https://www.infopathdev.com:443/forums/thread/21938.aspx</link><pubDate>Tue, 24 Jul 2007 17:53:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21938</guid><dc:creator>mhudsonjr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21938.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=21938</wfw:commentRss><description>&lt;p&gt;I have a full trust form, and I want to run an .exe file from my computer.&amp;nbsp; This works fine but I also want to open another InfoPath form from the server( off Sharepoint).&amp;nbsp; But with the Infopath form on the server I am getting an error that states that my form must be domain level to open files on the domain.&amp;nbsp; Is there a work around for this where I am able to run files on my computer and on the server.&amp;nbsp; My code to run the file on my computer is:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;	var chartNumber = XDocument.DOM.selectSingleNode(&amp;quot;/myGroup/my:field&amp;quot;).text;
	&lt;/p&gt;&lt;p&gt;var shell = new ActiveXObject(&amp;quot;WScript.Shell&amp;quot;)
	&lt;/p&gt;&lt;p&gt;var path = &amp;quot;\&amp;quot;C:Program Files\\Folder\\App.exe\&amp;quot; &amp;quot; + chartNumber + &amp;quot; 000&amp;quot;;
	&lt;/p&gt;&lt;p&gt;var oExec   = shell.run(path);&amp;nbsp;
&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for your help.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>