<?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 Copying file from one to another location using script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313319#M1196741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samir&lt;/P&gt;&lt;P&gt;Please copy your code into a text editor (notepad is fine) and then paste into the forum. I simply cannot make sense of what you have posted.&lt;/P&gt;&lt;P&gt;I am still not sure exactly what you are asking.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;-- edit -- the first part refers to the earlier post - I see that you have fixed tha -- end edit --&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Mar 2011 15:37:01 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2011-03-13T15:37:01Z</dc:date>
    <item>
      <title>Copying file from one to another location using script</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313314#M1196736</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 want to generate qvd files at another folder 'QVD' from csv files which are placed in folder 'CSV'.&lt;/P&gt;&lt;P&gt;How to define the path or how to move or copy the files from CSV folder to 'QVD' folder?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Samir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2011 13:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313314#M1196736</guid>
      <dc:creator />
      <dc:date>2011-03-13T13:00:31Z</dc:date>
    </item>
    <item>
      <title>Copying file from one to another location using script</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313315#M1196737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any idea please...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2011 14:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313315#M1196737</guid>
      <dc:creator />
      <dc:date>2011-03-13T14:39:35Z</dc:date>
    </item>
    <item>
      <title>Copying file from one to another location using script</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313316#M1196738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;I&gt;DataTable:&lt;/I&gt;&lt;BR /&gt;LOAD ... &amp;lt;load fields here&amp;gt; ...&lt;BR /&gt;FROM &amp;lt;path to CSV file&amp;gt;\file.csv&lt;BR /&gt;(..);&lt;BR /&gt;....&lt;BR /&gt;STORE DataTable into &amp;lt;path to QVD folder&amp;gt;\file.qvd (qvd);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Where the paths can be absolute (eg E:\QVDATA\CSV) or relative to the folder containg the QV model (eg ..\QVDATA\CSV)&lt;/P&gt;&lt;P&gt;Hope that help (or have I missed the point)?&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2011 15:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313316#M1196738</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-03-13T15:17:10Z</dc:date>
    </item>
    <item>
      <title>Copying file from one to another location using script</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313317#M1196739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonathan,&lt;/P&gt;&lt;P&gt;I am creating multiple QVD file using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;I&gt;&lt;/I&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;For&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;each File in filelist('D:\QlikView Dynamic Reporting\15-Feb-2011\Producer\Feb\*.csv')&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;TableName:&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;B&gt;FROM&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;[$(File)]&lt;/I&gt;&lt;/B&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;STORE&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;drop&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Next&lt;/B&gt;&lt;/P&gt;&lt;B&gt;table&lt;/B&gt; &lt;I&gt;TableName;&lt;/I&gt;TableName &lt;B&gt;INTO&lt;/B&gt; &lt;B&gt;&lt;I&gt;$(File)&lt;/I&gt;&lt;/B&gt;. qvd (qvd);hash128(fileName(), RowNo()) &lt;B&gt;AS&lt;/B&gt; line, [userId] &lt;B&gt;as&lt;/B&gt; LOGIN_ID, sessionId&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;************************************&lt;/P&gt;&lt;P&gt;In this condition I am getting idea how to find the name of the file and copy/move to the another folder?&lt;/P&gt;&lt;P&gt;Sorry for the confusion,&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Samir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2011 15:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313317#M1196739</guid>
      <dc:creator />
      <dc:date>2011-03-13T15:28:37Z</dc:date>
    </item>
    <item>
      <title>Copying file from one to another location using script</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313318#M1196740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry my reply was not well formatted, I wrote in well format, but after posting the reply it appeared weired.&lt;/P&gt;&lt;P&gt;Again I am writing my sample code:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;For each File in filelist('D:\QlikView Dynamic Reporting\15-Feb-2011\Producer\Feb\*.csv')&lt;BR /&gt; TableName:&lt;BR /&gt; LOAD&lt;BR /&gt; hash128(fileName(), RowNo()) AS line,&lt;BR /&gt; [userId] as LOGIN_ID,&lt;BR /&gt;&lt;BR /&gt; FROM&lt;BR /&gt; [$(File)]&lt;BR /&gt; (txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;BR /&gt; STORE TableName INTO $(File).qvd (qvd);&lt;BR /&gt; drop table TableName&lt;/EM&gt;&lt;/STRONG&gt;;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Next&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here I am not getting any idea how to get the generated QVD file name and copy to some other folder?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Samir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2011 15:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313318#M1196740</guid>
      <dc:creator />
      <dc:date>2011-03-13T15:35:54Z</dc:date>
    </item>
    <item>
      <title>Copying file from one to another location using script</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313319#M1196741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samir&lt;/P&gt;&lt;P&gt;Please copy your code into a text editor (notepad is fine) and then paste into the forum. I simply cannot make sense of what you have posted.&lt;/P&gt;&lt;P&gt;I am still not sure exactly what you are asking.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;-- edit -- the first part refers to the earlier post - I see that you have fixed tha -- end edit --&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2011 15:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313319#M1196741</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-03-13T15:37:01Z</dc:date>
    </item>
    <item>
      <title>Copying file from one to another location using script</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313320#M1196742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samir&lt;/P&gt;&lt;P style="font-style: italic; font-weight: bold"&gt;STORE TableName INTO &amp;lt;qvd path here&amp;gt;\$(File).qvd (qvd);&lt;/P&gt;&lt;P&gt;Is that what you are looking for?&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2011 15:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313320#M1196742</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-03-13T15:39:46Z</dc:date>
    </item>
    <item>
      <title>Copying file from one to another location using script</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313321#M1196743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonathan,&lt;/P&gt;&lt;P&gt;My code is as following:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;For each File in filelist('D:\QlikView Dynamic Reporting\15-Feb-2011\Producer\Feb\*.csv')&lt;BR /&gt; TableName:&lt;BR /&gt; LOAD&lt;BR /&gt; hash128(fileName(), RowNo()) AS line,&lt;BR /&gt; [userId] as LOGIN_ID,&lt;BR /&gt;&lt;BR /&gt; FROM&lt;BR /&gt; [$(File)]&lt;BR /&gt; (txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;BR /&gt; STORE TableName INTO $(File).qvd (qvd);&lt;BR /&gt; drop table TableName;&lt;BR /&gt;Next&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Suppose I want to copy the generated QVD file at the following location :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;D:\QlikView Dynamic Reporting\15-Feb-2011\Feb-QVD&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and if I provide the destination location as :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;STORE TableName INTO D:\QlikView Dynamic Reporting\15-Feb-2011\Feb-QVD\$(File).qvd (qvd);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The resultant code is as following taken from debug console:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;STORE TableName INTO D:\QlikView Dynamic Reporting\15-Feb-2011\Feb-QVD\D:\QlikView Dynamic Reporting\15-Feb-2011\Producer\Feb\pages_20110201.csv.qvd (qvd)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How to extract only the file name from the variable 'File' written in my code snippet, then append it to the desination path?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Samir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 05:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313321#M1196743</guid>
      <dc:creator />
      <dc:date>2011-03-14T05:03:43Z</dc:date>
    </item>
    <item>
      <title>Copying file from one to another location using script</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313322#M1196746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samir&lt;/P&gt;&lt;P&gt;OK, now I understand. You can use a subfield to extract the filename.Unfortunately, the FileName() function does not work in this context. The file name is the text after the last back slash, so something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Let vFileName = Subfield(File, '\', SubstringCount(File, '\')+1); // to strip the path&lt;BR /&gt;Let vFileName = SubField(vFileName, '.', 1); // to strip the extension&lt;BR /&gt;STORE into &lt;D&gt; (qvd);&lt;/D&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 05:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313322#M1196746</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-03-14T05:38:17Z</dc:date>
    </item>
    <item>
      <title>Copying file from one to another location using script</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313323#M1196749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonathan,&lt;/P&gt;&lt;P&gt;Thanks for your valuable and quick response. It worked perfectly.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Samir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 09:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313323#M1196749</guid>
      <dc:creator />
      <dc:date>2011-03-14T09:47:20Z</dc:date>
    </item>
    <item>
      <title>Copying file from one to another location using script</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313324#M1196760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 11:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313324#M1196760</guid>
      <dc:creator />
      <dc:date>2011-03-14T11:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Copying file from one to another location using script</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313325#M1196761</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;&amp;nbsp; can anyone tell me how to copy all files from particular location to another location?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 15:18:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-one-to-another-location-using-script/m-p/313325#M1196761</guid>
      <dc:creator />
      <dc:date>2013-06-03T15:18:16Z</dc:date>
    </item>
  </channel>
</rss>

