<?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 Check file exist via macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-file-exist-via-macro/m-p/311900#M115131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, in the Script, you can use the filetime() function to check if a file exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;if isnull(filetime('c:\file.txt')) then&lt;/P&gt;&lt;P&gt;//file doesnt exists&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;//file exists&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 May 2011 10:44:36 GMT</pubDate>
    <dc:creator>fosuzuki</dc:creator>
    <dc:date>2011-05-19T10:44:36Z</dc:date>
    <item>
      <title>Check file exist via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Check-file-exist-via-macro/m-p/311899#M115130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new in Qlikview and facing a problem in check file exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have create a macro to check if file exist. and don't know how to call it out in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do &lt;/P&gt;&lt;P&gt;if the xxx.qvd exist then do some incremental loading, if not exist will load all of record from an xls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my macro function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function CheckFileExist(filename)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If objFSO.FileExists(filename) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox ("good")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox ("not good la ...")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CheckFileExist = result&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if any other way to do so ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 08:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-file-exist-via-macro/m-p/311899#M115130</guid>
      <dc:creator />
      <dc:date>2011-05-19T08:52:17Z</dc:date>
    </item>
    <item>
      <title>Check file exist via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Check-file-exist-via-macro/m-p/311900#M115131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, in the Script, you can use the filetime() function to check if a file exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;if isnull(filetime('c:\file.txt')) then&lt;/P&gt;&lt;P&gt;//file doesnt exists&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;//file exists&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 10:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-file-exist-via-macro/m-p/311900#M115131</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2011-05-19T10:44:36Z</dc:date>
    </item>
    <item>
      <title>Check file exist via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Check-file-exist-via-macro/m-p/311901#M115132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hey Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help...filetime() works ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 03:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-file-exist-via-macro/m-p/311901#M115132</guid>
      <dc:creator />
      <dc:date>2011-05-20T03:13:06Z</dc:date>
    </item>
  </channel>
</rss>

