<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Systematically Clearing Infopath Cache on Startup</title><link>https://www.infopathdev.com:443/forums/thread/90777.aspx</link><pubDate>Tue, 18 Jun 2013 18:59:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90777</guid><dc:creator>PriestB</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90777.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=90777</wfw:commentRss><description>&lt;p&gt;Hello all,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have a need to clear the InfoPath 2010 cache on form opening. Through a search I found&amp;nbsp;the following code:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span&gt;&lt;font size="3"&gt;Dim wshShell,
sParam&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;span&gt;&lt;font size="3"&gt;
&amp;nbsp; sParam = &amp;quot;C:\Program Files\Microsoft Office\OFFICE&lt;b&gt;&lt;span style="color:red;"&gt;XX&lt;/span&gt;&lt;/b&gt;\INFOPATH.EXE /cache clearall&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;span&gt;&lt;font size="3"&gt;&amp;nbsp;
Set wshShell = Createobject(&amp;quot;WScript.Shell&amp;quot;)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;span&gt;&lt;font size="3"&gt;&amp;nbsp;
wshShell.Exec sParam&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;span&gt;&lt;font size="3"&gt;&amp;nbsp;
Set wshShell = Nothing&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;font face="Arial" size="2"&gt;I added this code to the OnLoad Event and it returns with an error:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Name &amp;#39;CreateObject&amp;#39; is not declared.&lt;/p&gt;&lt;p&gt;The form will not save and will not build.&lt;/p&gt;&lt;p&gt;Is there anyone that has tried to systematically cleared cache on an InfoPath form load?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>