<?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>Re: jscript FolderExists only go one level and alternative to ActiveX control</title><link>https://www.infopathdev.com:443/forums/thread/29097.aspx</link><pubDate>Mon, 02 Jun 2008 14:15:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29097</guid><dc:creator>admot</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29097.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29097</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yep. That did it! &lt;/p&gt;
&lt;p&gt;I thought I tried that before and it didn&amp;#39;t work. Seems to work now. I decided to use the FileExits and it works ok now as well.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BTW: I also figured out why the ActiveX popup appears. It&amp;#39;s because I am in Preview Mode, which has limited trust. Since my template is Fully&amp;nbsp;trused, the popup doesn&amp;#39;t appear if I open the form directly.&lt;/p&gt;</description></item><item><title>Re: jscript FolderExists only go one level and alternative to ActiveX control</title><link>https://www.infopathdev.com:443/forums/thread/29071.aspx</link><pubDate>Fri, 30 May 2008 20:42:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29071</guid><dc:creator>Albert</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29071.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29071</wfw:commentRss><description>&lt;p&gt;Did you use a double backslash between folders, like:&lt;/p&gt;
&lt;p&gt;var strRECFile = (&amp;quot;C:\\FolderOne\\FolderTwo&amp;quot;);&lt;/p&gt;</description></item><item><title>jscript FolderExists only go one level and alternative to ActiveX control</title><link>https://www.infopathdev.com:443/forums/thread/29068.aspx</link><pubDate>Fri, 30 May 2008 16:05:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29068</guid><dc:creator>admot</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29068</wfw:commentRss><description>&lt;p&gt;This is a two part question. I placed in the following code:&lt;br /&gt;function XDocument::OnLoad(eventObj) &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;&amp;nbsp; var fso = new ActiveXObject(&amp;quot;Scripting.FileSystemObject&amp;quot;); &lt;/p&gt;
&lt;p&gt;&amp;nbsp; var strRECFile = (&amp;quot;C:\\FolderOne&amp;quot;); &lt;/p&gt;
&lt;p&gt;&amp;nbsp; if (fso.FolderExists(strRECFile)) &lt;/p&gt;
&lt;p&gt;&amp;nbsp; { &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;XDocument.UI.Alert(&amp;quot;Folder Exists&amp;quot;); &lt;/p&gt;
&lt;p&gt;&amp;nbsp; } &lt;/p&gt;
&lt;p&gt;&amp;nbsp; else &lt;/p&gt;
&lt;p&gt;&amp;nbsp; { &lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; XDocument.UI.Alert(&amp;quot;Folder doesn&amp;#39;t exist&amp;quot;); &lt;/p&gt;
&lt;p&gt;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It finds the folder as expected. However, if I place in&amp;nbsp;var strRECFile = (&amp;quot;C:\\FolderOne\FolderTwo&amp;quot;); it doesn&amp;#39;t find the folder. I did a search but I couldn&amp;#39;t find an example of a folder exists that found more than one level. Is my syntax incorrect? Can this method go more than one level?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Question 2: The IE explorer&amp;#39;s &amp;quot;ActiveX Page may be unsafe caution window appears&amp;quot;. Is there anyway to disable it for this form itself? I don&amp;#39;t want to soften the user&amp;#39;s ActiveX settings in their IE. Is there an alternative to checking to see if a file exists other than the ActiveX?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;</description></item></channel></rss>