<?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: How do I find the current directory? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325365#M119862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DocumentPath() returns the file path but not the current directory. I could not find an easier way to get the current path (without reloading) so I did the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Stores Current Working Directory into VarName*/&lt;/P&gt;&lt;P&gt;SUB CurrentWorkingDirectory(VarName)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let N = SubStringCount(DocumentPath(),'\');&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let $(VarName) = SubField(DocumentPath(),'\',1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; for i = 2 to N &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let $(VarName) = '$($(VarName))\'&amp;amp; SubField(DocumentPath(),'\',$(i));&lt;/P&gt;&lt;P&gt;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;ENDSUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2017 16:04:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-10T16:04:12Z</dc:date>
    <item>
      <title>How do I find the current directory?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325361#M119858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created an app in e.g. TestFolder, and then copied it to e.g. LiveFolder.&amp;nbsp; Now, I want to know which folder my app is running in to create different security in Section Access.&amp;nbsp; If I trace the QvWorkPath variable at that point it still shows TestFolder.&amp;nbsp; (I read in the help file that system variables are set at creation time?)&amp;nbsp; Is this usual, and how should I be finding the current directory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 15:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325361#M119858</guid>
      <dc:creator />
      <dc:date>2012-02-28T15:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the current directory?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325362#M119859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just reload the qlikview file, now you will get the latest path by using the QvWorkPath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If reload is not possible try File -&amp;gt; Partial Reload option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 15:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325362#M119859</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-28T15:20:29Z</dc:date>
    </item>
    <item>
      <title>How do I find the current directory?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325363#M119860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or use the QV system function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;DocumentPath( )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;to get the current doucment path, should work even without reloading.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 15:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325363#M119860</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-28T15:55:56Z</dc:date>
    </item>
    <item>
      <title>How do I find the current directory?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325364#M119861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, found a forum post about changing Qlikview to update the variables at the start of the script rather than the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 17:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325364#M119861</guid>
      <dc:creator />
      <dc:date>2012-02-28T17:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the current directory?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325365#M119862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DocumentPath() returns the file path but not the current directory. I could not find an easier way to get the current path (without reloading) so I did the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Stores Current Working Directory into VarName*/&lt;/P&gt;&lt;P&gt;SUB CurrentWorkingDirectory(VarName)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let N = SubStringCount(DocumentPath(),'\');&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let $(VarName) = SubField(DocumentPath(),'\',1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; for i = 2 to N &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let $(VarName) = '$($(VarName))\'&amp;amp; SubField(DocumentPath(),'\',$(i));&lt;/P&gt;&lt;P&gt;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;ENDSUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 16:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325365#M119862</guid>
      <dc:creator />
      <dc:date>2017-02-10T16:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the current directory?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325366#M119863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Left(DocumentPath(), Index(DocumentPath(),'\',-1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 16:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325366#M119863</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-02-10T16:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the current directory?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325367#M119864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;doh! yes that is much better &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 17:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-find-the-current-directory/m-p/325367#M119864</guid>
      <dc:creator />
      <dc:date>2017-02-10T17:36:00Z</dc:date>
    </item>
  </channel>
</rss>

