<?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 if directory exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150119#M28201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is another option for you.&lt;/P&gt;&lt;P&gt;Use this is your QV script:&lt;/P&gt;&lt;P&gt;Let vTime = FileTime('C:\Test');&lt;/P&gt;&lt;P&gt;In abopve line "Test" is a directory in "C" drive. If vTime is empty, directory doesn't exists. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was surprised to see that this file function works on directories as well, atleast on my machine. Please validate if it works on your machine as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2009 21:55:31 GMT</pubDate>
    <dc:creator>disqr_rm</dc:creator>
    <dc:date>2009-07-28T21:55:31Z</dc:date>
    <item>
      <title>check if directory exists</title>
      <link>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150113#M28195</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;is there a way to check if a directory exists? and if it doens't exist create the directory?&lt;/P&gt;&lt;P&gt;thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rey-man&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 15:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150113#M28195</guid>
      <dc:creator />
      <dc:date>2009-07-23T15:43:08Z</dc:date>
    </item>
    <item>
      <title>check if directory exists</title>
      <link>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150114#M28196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;sub createFolder&lt;BR /&gt;&lt;BR /&gt;newfolder = "E:\QVApplications\QVTest\newone"&lt;BR /&gt;set fso = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;If Not fso.FolderExists(newfolder) Then&lt;BR /&gt; Set newfolder = fso.CreateFolder(newfolder)&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 15:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150114#M28196</guid>
      <dc:creator />
      <dc:date>2009-07-23T15:58:50Z</dc:date>
    </item>
    <item>
      <title>check if directory exists</title>
      <link>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150115#M28197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gordon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not working the way it want it i guess. This looks like a macro. I want it in the load script.&lt;/P&gt;&lt;P&gt;I fill in the tablename and description manually. Based on the name, it should create the directory. (see LET vDir)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;LET vDir = 'D:\QlikView Storage\Private Data\Source Documents\Data\SAP ECC\$(vNaam)\';&lt;BR /&gt;&lt;BR /&gt;SET fso = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;IF NOT fso.FolderExists('$(vDir)') THEN&lt;BR /&gt; SET newfolder = fso.CreateFolder('$(vDir)')&lt;BR /&gt;&lt;BR /&gt; '$(vNaam)':&lt;BR /&gt; LOAD&lt;BR /&gt; *&lt;BR /&gt;&lt;BR /&gt; ;&lt;BR /&gt; SQL SELECT *&lt;BR /&gt; FROM $(vNaam)&lt;BR /&gt; ;&lt;BR /&gt;&lt;BR /&gt; //STORE $(vNaam) INTO ../Data/SAP ECC/New/$(vDesc)$(vQVD_ECC_version)$(vVersionNumber)$(vWeek)$(Year).qvd;&lt;BR /&gt; STORE $(vNaam) INTO $(vDir)$(vNaam)_$(vDesc)$(vQVD_ECC_version)$(vVersionNumber)$(vWeek)$(Year).qvd;&lt;BR /&gt; DROP TABLE $(vNaam);&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its clear what im trying to say.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rey-man&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 16:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150115#M28197</guid>
      <dc:creator />
      <dc:date>2009-07-23T16:16:06Z</dc:date>
    </item>
    <item>
      <title>check if directory exists</title>
      <link>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150116#M28198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create the function in your macro and execute the function during the script reload&lt;/P&gt;&lt;P&gt;LET CreateFolder = CreateFolder();&lt;/P&gt;&lt;P&gt;//Where CreateFolder is the macro function&lt;/P&gt;&lt;P&gt;This way the macro will be launched only during reload of application&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 19:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150116#M28198</guid>
      <dc:creator />
      <dc:date>2009-07-23T19:01:06Z</dc:date>
    </item>
    <item>
      <title>check if directory exists</title>
      <link>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150117#M28199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sébastien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't want to use a macro if its not necessary.&lt;/P&gt;&lt;P&gt;Is there a way to avoid this? or is it the only option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Rey-man&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 16:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150117#M28199</guid>
      <dc:creator />
      <dc:date>2009-07-27T16:02:58Z</dc:date>
    </item>
    <item>
      <title>check if directory exists</title>
      <link>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150118#M28200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think about another way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 16:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150118#M28200</guid>
      <dc:creator />
      <dc:date>2009-07-28T16:51:43Z</dc:date>
    </item>
    <item>
      <title>check if directory exists</title>
      <link>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150119#M28201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is another option for you.&lt;/P&gt;&lt;P&gt;Use this is your QV script:&lt;/P&gt;&lt;P&gt;Let vTime = FileTime('C:\Test');&lt;/P&gt;&lt;P&gt;In abopve line "Test" is a directory in "C" drive. If vTime is empty, directory doesn't exists. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was surprised to see that this file function works on directories as well, atleast on my machine. Please validate if it works on your machine as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 21:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150119#M28201</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-07-28T21:55:31Z</dc:date>
    </item>
    <item>
      <title>check if directory exists</title>
      <link>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150120#M28202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested it, but of course, if the directory doesn't exists, the variable vTime neither exists.&lt;/P&gt;&lt;P&gt;So how can I create an if function then, cause the compiler returns an error in the script. Its says IF '' = '' then ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rey-man&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 22:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150120#M28202</guid>
      <dc:creator />
      <dc:date>2009-07-28T22:47:44Z</dc:date>
    </item>
    <item>
      <title>check if directory exists</title>
      <link>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150121#M28203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this one?&lt;/P&gt;&lt;P&gt;if FileTime('C:\Test') &amp;gt; 0 then&lt;BR /&gt; Set vDirExists = 'Yes';&lt;BR /&gt;else&lt;BR /&gt; Set vDirExists = 'No';&lt;BR /&gt;end if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 22:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150121#M28203</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-07-28T22:55:50Z</dc:date>
    </item>
    <item>
      <title>check if directory exists</title>
      <link>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150122#M28204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now the only part remains the creation of this directory itself.&lt;/P&gt;&lt;P&gt;Greetz&lt;/P&gt;&lt;P&gt;Rey-man&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 13:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/150122#M28204</guid>
      <dc:creator />
      <dc:date>2009-07-29T13:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: check if directory exists</title>
      <link>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/1794884#M1211089</link>
      <description>&lt;P&gt;any idea of creating a dynamic year and month folder&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 15:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/1794884#M1211089</guid>
      <dc:creator>arpita</dc:creator>
      <dc:date>2021-03-26T15:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: check if directory exists</title>
      <link>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/2142290#M1224890</link>
      <description>&lt;P&gt;Hey, versuche es doch mit dem Einbinden eines Powershell Skripts mit der Übergabe des gewünschten Verzeichnisses.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 09:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-if-directory-exists/m-p/2142290#M1224890</guid>
      <dc:creator>x6oTsUCYKP5PcLxRUGLH</dc:creator>
      <dc:date>2023-11-29T09:11:51Z</dc:date>
    </item>
  </channel>
</rss>

