<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: execute a resource file form code?</title><link>https://www.infopathdev.com:443/forums/thread/75742.aspx</link><pubDate>Mon, 27 Feb 2012 14:57:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75742</guid><dc:creator>ek38</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75742.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=75742</wfw:commentRss><description>&lt;p&gt;Jimmy,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Anson provided me with an example of how to do it.&amp;nbsp; The answer involved &amp;quot;Code&amp;quot;.&amp;nbsp; I do not know execute a resource file in code so I added a thread to the &amp;quot;code&amp;quot; forum seeking an example in JScript.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can you elaborate on the&amp;nbsp;commands in JScript to do this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;;COLOR:maroon;FONT-SIZE:12pt;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: execute a resource file form code?</title><link>https://www.infopathdev.com:443/forums/thread/75551.aspx</link><pubDate>Tue, 21 Feb 2012 16:40:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75551</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75551.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=75551</wfw:commentRss><description>&lt;p&gt;Hi ek38,&lt;/p&gt;&lt;p&gt;&amp;nbsp;It seems you already asked this in a separate thread.&amp;nbsp; Any reason you started up a new one? It looks like your Process.Start() approach was probably the most appropriate way to go, but perhaps the process wasn&amp;#39;t starting up in the right path.&amp;nbsp; Have you tried explicitly specifying the full path?&lt;/p&gt;</description></item><item><title>execute a resource file form code?</title><link>https://www.infopathdev.com:443/forums/thread/75543.aspx</link><pubDate>Tue, 21 Feb 2012 15:36:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75543</guid><dc:creator>ek38</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75543.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=75543</wfw:commentRss><description>&lt;p&gt;I want to call a &amp;quot;.bat&amp;quot; file or a &amp;quot;.cmd&amp;quot; file located on the local C drive from within an infopath form.&amp;nbsp; It was suggested I add the file as a &amp;quot;resource&amp;quot; file, which I did.&amp;nbsp; Now, how do I execute that resource file within code?&amp;nbsp; JScript example would be very helpful.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;E&lt;/p&gt;</description></item><item><title>Re: Unable to find batch file</title><link>https://www.infopathdev.com:443/forums/thread/75517.aspx</link><pubDate>Mon, 20 Feb 2012 15:57:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75517</guid><dc:creator>ek38</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75517.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=75517</wfw:commentRss><description>&lt;p&gt;Anson,&lt;/p&gt;
&lt;p&gt;No I have not.&amp;nbsp; To be honest, I never have used that feature of Infopath.&amp;nbsp; I will read-up and give it a try.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks&lt;/p&gt;</description></item><item><title>Re: Unable to find batch file</title><link>https://www.infopathdev.com:443/forums/thread/75326.aspx</link><pubDate>Wed, 15 Feb 2012 19:18:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75326</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75326.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=75326</wfw:commentRss><description>Have you tried including the file as a resource of the template instead and then referring that file in code?&amp;nbsp; Go to Data tab -&amp;gt; Resource Files.</description></item><item><title>Unable to find batch file</title><link>https://www.infopathdev.com:443/forums/thread/75232.aspx</link><pubDate>Tue, 14 Feb 2012 14:00:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75232</guid><dc:creator>ek38</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75232.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=75232</wfw:commentRss><description>&lt;p&gt;We have an infopath form with a button.&amp;nbsp; When&amp;nbsp;the user clicks the button,&amp;nbsp;code&amp;nbsp;is&amp;nbsp;executed.&amp;nbsp; It simply runs a file&amp;nbsp;located on the &amp;quot;C&amp;quot; drive&amp;nbsp;&lt;/p&gt;
&lt;p&gt;objShell.ShellExecute(&amp;quot;ListShipDocsToBeImported.cmd&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Often, the user will get a message &amp;quot;Windows cannot find ListShipDocsToBeImported.cmd.&amp;nbsp; Make sure you typed the name correctly and try again.&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The users work around is to reboot the computer and then it will work.&amp;nbsp; The form is located in a directory called C:\aoe.&amp;nbsp; The cmd file is also located in the same directory.&lt;/p&gt;</description></item></channel></rss>