<?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: How to run .exe file from code?</title><link>https://www.infopathdev.com:443/forums/thread/67720.aspx</link><pubDate>Fri, 24 Jun 2011 09:36:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67720</guid><dc:creator>DaveA</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67720.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67720</wfw:commentRss><description>Thank you - it worked!

(simple when you know how...)</description></item><item><title>Re: How to run .exe file from code?</title><link>https://www.infopathdev.com:443/forums/thread/67634.aspx</link><pubDate>Wed, 22 Jun 2011 07:09:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67634</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67634.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67634</wfw:commentRss><description>&lt;p&gt;Try setting your form&amp;#39;s security permissions to Full Trust (Tools-&amp;gt;Form Options-&amp;gt;Security-&amp;gt;...)&lt;/p&gt;</description></item><item><title>Re: How to run .exe file from code?</title><link>https://www.infopathdev.com:443/forums/thread/67622.aspx</link><pubDate>Tue, 21 Jun 2011 19:58:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67622</guid><dc:creator>DaveA</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67622.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67622</wfw:commentRss><description>Hello,

I can&amp;#39;t get this script to work for me. I have copied and pasted into the correct place in the VBScript code for a button click. I asm using Infopath 2003. I get the error &amp;#39;ActiveX cannot create the object:&amp;#39;WScript.Shell&amp;#39;

Any ideas?</description></item><item><title>Re: How to run .exe file from code?</title><link>https://www.infopathdev.com:443/forums/thread/10452.aspx</link><pubDate>Thu, 07 Sep 2006 20:00:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10452</guid><dc:creator>trufooser</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10452.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10452</wfw:commentRss><description>i usually use jscript, but heres a quick tutorial to switch scripts once you have already chosen a script:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://support.microsoft.com/kb/828853/en-us?spid=2515&amp;sid=global&gt;http://support.microsoft.com/kb/828853/en-us?spid=2515&amp;sid=global&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Also, is there a way to print out a repeating table, maybe store it in an array and then print out the array?&lt;br /&gt;&lt;br /&gt;Thanks.</description></item><item><title>Re: How to run .exe file from code?</title><link>https://www.infopathdev.com:443/forums/thread/10451.aspx</link><pubDate>Thu, 07 Sep 2006 11:18:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10451</guid><dc:creator>mbenbow</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10451.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10451</wfw:commentRss><description>Hey,&lt;br /&gt;&lt;br /&gt;I don't see why not!  You can create the file with File System Object and use the WriteLine method to enter data into the text file (see above with oTempFile.WriteLine) and instead of hard coding the info for the line, use the XDocument.DOM.selectSingleNode("//my:FieldName").Text&lt;br /&gt;&lt;br /&gt;Hope that helps!&lt;br /&gt;MB</description></item><item><title>Re: How to run .exe file from code?</title><link>https://www.infopathdev.com:443/forums/thread/10450.aspx</link><pubDate>Wed, 06 Sep 2006 19:36:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10450</guid><dc:creator>trufooser</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10450.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10450</wfw:commentRss><description>is it possible to pull information from your data fields and insert into the notepad file?</description></item><item><title>Re: How to run .exe file from code?</title><link>https://www.infopathdev.com:443/forums/thread/10449.aspx</link><pubDate>Wed, 06 Sep 2006 16:24:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10449</guid><dc:creator>mbenbow</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10449.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10449</wfw:commentRss><description>Hey,&lt;br /&gt;&lt;br /&gt;Here is another one that creates a simple temporary text file and then displays it in Notepad from a button in the form template.&lt;br /&gt;&lt;br /&gt;Sub btnCreateTempFile_OnClick(eventObj)&lt;br /&gt;' Write your code here&lt;br /&gt;	Const iTempFolder = 2&lt;br /&gt;	Dim oFS, oTempFolder, sFile, oTempFile, wshShell&lt;br /&gt;	Dim sRun, sTemp&lt;br /&gt;	&lt;br /&gt;	Set oFS = CreateObject("Scripting.FileSystemObject")&lt;br /&gt;	Set oTempFolder = oFS.GetSpecialFolder(iTempFolder)&lt;br /&gt;	sFile = oFS.GetTempName&lt;br /&gt;	&lt;br /&gt;	sTemp = oFS.GetSpecialFolder(iTempFolder)&lt;br /&gt;	If Right(sTemp,1) &amp;lt;&amp;gt; "\" Then&lt;br /&gt;		sTemp = sTemp &amp; "\" &amp; sFile&lt;br /&gt;	Else&lt;br /&gt;		sTemp = sTemp &amp; sFile&lt;br /&gt;	End If&lt;br /&gt;	&lt;br /&gt;	&lt;br /&gt;	Set oTempFile = oTempFolder.CreateTextFile(sFile)&lt;br /&gt;	&lt;br /&gt;	oTempFile.WriteLine "Temp File created on " &amp; Now()&lt;br /&gt;	&lt;br /&gt;	&lt;br /&gt;	'show it in notepade&lt;br /&gt;	Set wshShell = Createobject("WScript.Shell")&lt;br /&gt;	sRun = "notepad.exe " &amp; sTemp&lt;br /&gt;	wshShell.Run sRun&lt;br /&gt;	wshShell.AppActivate "NotePad"&lt;br /&gt;End Sub</description></item><item><title>Re: How to run .exe file from code?</title><link>https://www.infopathdev.com:443/forums/thread/10448.aspx</link><pubDate>Wed, 06 Sep 2006 11:20:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10448</guid><dc:creator>mbenbow</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10448.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10448</wfw:commentRss><description>Hey,&lt;br /&gt;&lt;br /&gt;This is a quick example to run the calculator program from a button in InfoPath via VbScript:&lt;br /&gt;&lt;br /&gt;Sub btnCalc_OnClick(eventObj)&lt;br /&gt;' Write your code here&lt;br /&gt;	Dim wshShell&lt;br /&gt;	&lt;br /&gt;	Set wshShell = Createobject("WScript.Shell")&lt;br /&gt;	wshShell.Run "calc"&lt;br /&gt;	wshShell.AppActivate "Calculator"&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Hope that helps,&lt;br /&gt;MB</description></item><item><title>How to run .exe file from code?</title><link>https://www.infopathdev.com:443/forums/thread/5827.aspx</link><pubDate>Wed, 06 Sep 2006 07:50:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5827</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5827.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5827</wfw:commentRss><description>How can I run .exe program from an InfoPath form's code (VBscript)?</description></item></channel></rss>