<?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 File created time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177597#M45135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Mark wrote:&lt;BR /&gt;Dear Stefan,&lt;BR /&gt;Thank you for your suggestion. I knew that I could get the file creation date using Vbscript. I only never used VbScript functions in my load script. Are there any specific things that I need to do?&lt;BR /&gt;I just copied your function in the Module Editor, and created a variable in my loadscript:&lt;BR /&gt;&lt;BR /&gt;LET temp=ShowDateCreated('C:\Test.txt');&lt;BR /&gt;&lt;BR /&gt;But it does not work, what am I doing wrong? Also making the fuction public does not help..&lt;BR /&gt;Kind regards,&lt;BR /&gt;Mark&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when using functions like this you have to adopt the security settings ("Allow system access") ... Have you checked this?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2009 03:57:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-09-08T03:57:22Z</dc:date>
    <item>
      <title>File created time</title>
      <link>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177594#M45132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there a way to get the creation time of a text file. I know about filetime() but that function results in the date and time of last modification.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 17:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177594#M45132</guid>
      <dc:creator />
      <dc:date>2009-09-07T17:39:38Z</dc:date>
    </item>
    <item>
      <title>File created time</title>
      <link>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177595#M45133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you would have to use vbscript &amp;amp; FileSystemObject&lt;/P&gt;&lt;P&gt;Function ShowDateCreated(filespec)&lt;BR /&gt; Dim fso, f&lt;BR /&gt; Set fso = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt; Set f = fso.GetFile(filespec)&lt;BR /&gt; ShowDateCreated = f.DateCreated&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;You could integrate this function into modules and also use it in your load-script.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 22:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177595#M45133</guid>
      <dc:creator />
      <dc:date>2009-09-07T22:51:50Z</dc:date>
    </item>
    <item>
      <title>File created time</title>
      <link>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177596#M45134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Stefan,&lt;/P&gt;&lt;P&gt;Thank you for your suggestion. I knew that I could get the file creation date using Vbscript. I only never used VbScript functions in my load script. Are there any specific things that I need to do?&lt;BR /&gt;I just copied your function in the Module Editor, and created a variable in my loadscript:&lt;BR /&gt;&lt;BR /&gt;LET temp=ShowDateCreated('C:\Test.txt');&lt;BR /&gt;&lt;BR /&gt;But it does not work, what am I doing wrong? Also making the fuction public does not help..&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 23:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177596#M45134</guid>
      <dc:creator />
      <dc:date>2009-09-07T23:26:26Z</dc:date>
    </item>
    <item>
      <title>File created time</title>
      <link>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177597#M45135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Mark wrote:&lt;BR /&gt;Dear Stefan,&lt;BR /&gt;Thank you for your suggestion. I knew that I could get the file creation date using Vbscript. I only never used VbScript functions in my load script. Are there any specific things that I need to do?&lt;BR /&gt;I just copied your function in the Module Editor, and created a variable in my loadscript:&lt;BR /&gt;&lt;BR /&gt;LET temp=ShowDateCreated('C:\Test.txt');&lt;BR /&gt;&lt;BR /&gt;But it does not work, what am I doing wrong? Also making the fuction public does not help..&lt;BR /&gt;Kind regards,&lt;BR /&gt;Mark&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when using functions like this you have to adopt the security settings ("Allow system access") ... Have you checked this?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 03:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177597#M45135</guid>
      <dc:creator />
      <dc:date>2009-09-08T03:57:22Z</dc:date>
    </item>
    <item>
      <title>File created time</title>
      <link>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177598#M45136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;stwxy75 wrote:&lt;BR /&gt;&amp;lt;pre&amp;gt;&lt;BR /&gt;Mark wrote:&lt;BR /&gt;Dear Stefan,&lt;BR /&gt;Thank you for your suggestion. I knew that I could get the file creation date using Vbscript. I only never used VbScript functions in my load script. Are there any specific things that I need to do?&lt;BR /&gt;I just copied your function in the Module Editor, and created a variable in my loadscript:&lt;BR /&gt;&lt;BR /&gt;LET temp=ShowDateCreated('C:\Test.txt');&lt;BR /&gt;&lt;BR /&gt;But it does not work, what am I doing wrong? Also making the fuction public does not help..&lt;BR /&gt;Kind regards,&lt;BR /&gt;Mark&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when using functions like this you have to adopt the security settings ("Allow system access") ... Have you checked this?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;DIV style="CLEAR:both;"&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, secuity settings are already on "allow system access".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 04:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177598#M45136</guid>
      <dc:creator />
      <dc:date>2009-09-08T04:03:30Z</dc:date>
    </item>
    <item>
      <title>File created time</title>
      <link>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177599#M45137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I made some tests ...&lt;/P&gt;&lt;P&gt;The return of a method does not seem to work without casting the VBScript-datetime to string ...&lt;/P&gt;&lt;P&gt;Have a look at the attached example (Module &amp;amp; Load-Script) ...&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Stefan&lt;/P&gt;&lt;P&gt;P.S.: Note: You need to have the file C:\test.txt for my demo ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 04:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177599#M45137</guid>
      <dc:creator />
      <dc:date>2009-09-08T04:51:27Z</dc:date>
    </item>
    <item>
      <title>File created time</title>
      <link>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177600#M45138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Stefan,&lt;/P&gt;&lt;P&gt;Thank you for your solution. It works, the problem was indeed that the function couldn't return a datatime type. Casting to a string was the solution.&lt;BR /&gt;The only problem I have now is that when reloading the script using QV 9 x64 Server, the function does not wrok. When using a local client everything works perfect. It's maybe caused by the macro security, but I these settings are already on the right values both on QV Server as in the Module Editor. Any suggestions?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 18:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177600#M45138</guid>
      <dc:creator />
      <dc:date>2009-09-09T18:30:36Z</dc:date>
    </item>
    <item>
      <title>File created time</title>
      <link>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177601#M45139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have the possibility to run the script manually on your server to test if it works?&lt;/P&gt;&lt;P&gt;(Open the QlikView application on the server) ...&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 18:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177601#M45139</guid>
      <dc:creator />
      <dc:date>2009-09-09T18:35:31Z</dc:date>
    </item>
    <item>
      <title>File created time</title>
      <link>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177602#M45140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that FileSystemObject is treated different on XP, WS2003 and possibly Vista/7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 19:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177602#M45140</guid>
      <dc:creator>blaise</dc:creator>
      <dc:date>2009-09-09T19:00:59Z</dc:date>
    </item>
    <item>
      <title>File created time</title>
      <link>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177603#M45141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;blaise wrote:&lt;BR /&gt;I think that FileSystemObject is treated different on XP, WS2003 and possibly Vista/7&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested this on XP, Vista, and Windows 7, but not on WS2003 but I don't think it's different there ...&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 19:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-created-time/m-p/177603#M45141</guid>
      <dc:creator />
      <dc:date>2009-09-09T19:05:06Z</dc:date>
    </item>
  </channel>
</rss>

