<?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: Can I use the variable %USERPROFILE% in my load script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-I-use-the-variable-USERPROFILE-in-my-load-script/m-p/728340#M1081934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;EXECUTE cmd.exe /c echo %USERPROFILE% &amp;gt; user.txt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;path:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;LOAD @1 as userpath&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;user.txt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;(txt, codepage is 1252, no labels, delimiter is '\t', msq);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;let v = Peek('userpath',0,'path');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;DROP Table path;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check attachment.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2014 21:09:49 GMT</pubDate>
    <dc:creator>gmoraleswit</dc:creator>
    <dc:date>2014-07-07T21:09:49Z</dc:date>
    <item>
      <title>Can I use the variable %USERPROFILE% in my load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-use-the-variable-USERPROFILE-in-my-load-script/m-p/728339#M1081933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to edit a script to use %USERPROFILE% instead of using c:\users\computer name\ to help someone who moves around to different machines that has Qlikview licenses and has the their excel file loaded in the same dropbox location on each computer.&amp;nbsp; So, instead having to change the load statement and create different files, I was trying to use the path to the %USERPROFILE%...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;//[%USERPROFILE%\Dropbox\Apps\Attachments\Data.xls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 20:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-use-the-variable-USERPROFILE-in-my-load-script/m-p/728339#M1081933</guid>
      <dc:creator>patbuchanan</dc:creator>
      <dc:date>2014-07-07T20:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the variable %USERPROFILE% in my load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-use-the-variable-USERPROFILE-in-my-load-script/m-p/728340#M1081934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;EXECUTE cmd.exe /c echo %USERPROFILE% &amp;gt; user.txt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;path:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;LOAD @1 as userpath&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;user.txt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;(txt, codepage is 1252, no labels, delimiter is '\t', msq);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;let v = Peek('userpath',0,'path');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;DROP Table path;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check attachment.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 21:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-use-the-variable-USERPROFILE-in-my-load-script/m-p/728340#M1081934</guid>
      <dc:creator>gmoraleswit</dc:creator>
      <dc:date>2014-07-07T21:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the variable %USERPROFILE% in my load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-use-the-variable-USERPROFILE-in-my-load-script/m-p/728341#M1081935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't access the variable directly, but you can use the GetFolder() function to retrieve the same value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vUserprofile = GetFolderPath('Profile');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;[$(vUserprofile)\Dropbox\Apps\Attachments\Data.xls&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com/"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 00:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-use-the-variable-USERPROFILE-in-my-load-script/m-p/728341#M1081935</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-07-08T00:24:47Z</dc:date>
    </item>
  </channel>
</rss>

