<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Validate UNC path (root folder) in load script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437322#M163105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wish I could use the execute command (it does work) - but that requires the user to allow EXECUTE from the load script - a security setting that we don't want users to tinker with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2013 20:26:11 GMT</pubDate>
    <dc:creator>Tyler_Waterfall</dc:creator>
    <dc:date>2013-02-14T20:26:11Z</dc:date>
    <item>
      <title>Validate UNC path (root folder) in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437318#M163101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to write a simple check in the QVW load script to validate that a user-defined folder path is valid. Currently, I am using a FileTime('$(userFilePath)') function, which works fine unless the File Path enetered is a &lt;STRONG&gt;UNC root&lt;/STRONG&gt; folder. There is no FileTime for a UNC root!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any functions or methods to accurately verify the existence of a user-defined folder where that folder might be a UNC root?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! Gracias!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 19:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437318#M163101</guid>
      <dc:creator>Tyler_Waterfall</dc:creator>
      <dc:date>2013-02-14T19:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Validate UNC path (root folder) in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437319#M163102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you could try a store command to try to write a file to that folder and then check if the file exists by gettting its filetime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 19:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437319#M163102</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-14T19:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Validate UNC path (root folder) in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437320#M163103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;Gysbert,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;Thank you for your quick response. That thought crossed my mind as well, but I am concerned that such a store command would also require Write access to the specified folder, which might be restricted. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 20:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437320#M163103</guid>
      <dc:creator>Tyler_Waterfall</dc:creator>
      <dc:date>2013-02-14T20:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Validate UNC path (root folder) in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437321#M163104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, maybe using the execute command then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;execute cmd.exe /c dir&amp;nbsp; &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;$(userFilePath)&lt;/SPAN&gt; &amp;gt; dircheck.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Afterwards load dircheck.txt and check its contents. The execute will need some additional priviliges I reckon. &lt;/P&gt;&lt;P&gt;Who knows, it might even work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 20:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437321#M163104</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-14T20:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Validate UNC path (root folder) in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437322#M163105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wish I could use the execute command (it does work) - but that requires the user to allow EXECUTE from the load script - a security setting that we don't want users to tinker with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 20:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437322#M163105</guid>
      <dc:creator>Tyler_Waterfall</dc:creator>
      <dc:date>2013-02-14T20:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Validate UNC path (root folder) in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437323#M163106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you asume that the folder will always have at least one file? If so, you can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vFolderExists=0;&lt;/P&gt;&lt;P&gt;for each file in filelist('\\rob-work2\c$\*.*')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SET vFolderExists=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EXIT FOR WHEN 1;&lt;/P&gt;&lt;P&gt;next file&lt;/P&gt;&lt;P&gt;SET file=;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 22:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437323#M163106</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-02-14T22:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Validate UNC path (root folder) in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437324#M163107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob - thank you. this is helpful, especially when combined with a dirlist loop for the case when we're not certain whether a file will exist in the UNC share.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 14:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437324#M163107</guid>
      <dc:creator>Tyler_Waterfall</dc:creator>
      <dc:date>2013-02-15T14:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Validate UNC path (root folder) in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437325#M163108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert,&lt;/P&gt;&lt;P&gt;I am hesitant to use anything that would require write access to a folder, which the Store command would. I'm not sure I could detect why the script was failing - whether for permissions or for the non-existence of the specified folder.&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 14:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437325#M163108</guid>
      <dc:creator>Tyler_Waterfall</dc:creator>
      <dc:date>2013-02-15T14:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Validate UNC path (root folder) in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437326#M163109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob and community,&lt;/P&gt;&lt;P&gt;I'm still unable to get a file or a directory to return when using filelist or dirlist, respectively, on a UNC Root.&lt;/P&gt;&lt;P&gt;Tricky, tricky. &lt;/P&gt;&lt;P&gt;Any other ideas? (which do not require write-access for the process running the script)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 21:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-UNC-path-root-folder-in-load-script/m-p/437326#M163109</guid>
      <dc:creator>Tyler_Waterfall</dc:creator>
      <dc:date>2013-02-25T21:34:59Z</dc:date>
    </item>
  </channel>
</rss>

