<?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:Copy and delete text files? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237924#M88908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian&lt;/P&gt;&lt;P&gt;You can access the local file system with macros. You need to give rights to this and you might run into problems using a server hosted document.&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 May 2010 16:53:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-11T16:53:41Z</dc:date>
    <item>
      <title>Copy and delete text files?</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237922#M88906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to load a text file from a folder 'Infiles', then I would like to move the file to the folder 'Oldfiles'. That is I would like to delete the file from 'Infiles' when I have loaded the file and save a copy of it in the 'oldfiles' folder. Is this possible? Could this be done in QV script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 16:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237922#M88906</guid>
      <dc:creator />
      <dc:date>2010-05-11T16:00:37Z</dc:date>
    </item>
    <item>
      <title>Copy and delete text files?</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237923#M88907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView doesn't have a sentence for deleting files, only can write (STORE). You should delete files manually.&lt;/P&gt;&lt;P&gt;I think exists other possibility, You can probably do it in VBScript, but I not sure.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 16:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237923#M88907</guid>
      <dc:creator />
      <dc:date>2010-05-11T16:34:00Z</dc:date>
    </item>
    <item>
      <title>Re:Copy and delete text files?</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237924#M88908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian&lt;/P&gt;&lt;P&gt;You can access the local file system with macros. You need to give rights to this and you might run into problems using a server hosted document.&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 16:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237924#M88908</guid>
      <dc:creator />
      <dc:date>2010-05-11T16:53:41Z</dc:date>
    </item>
    <item>
      <title>Re:Copy and delete text files?</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237925#M88909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample macro for copying a file to a new location. You must change the Current Local Security to Allow System Access in the macro window:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub CopyFile&lt;BR /&gt; strFilePath = "x:\orig_file.txt"&lt;BR /&gt; strDestination ="x:\newpath\dest_file.txt"&lt;BR /&gt; Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt; Set objFileCopy = objFSO.GetFile(strFilePath)&lt;BR /&gt; objFileCopy.Copy (strDestination)&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You can probably find more commands by searching for the FileSystemObject.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 17:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237925#M88909</guid>
      <dc:creator />
      <dc:date>2010-05-11T17:46:18Z</dc:date>
    </item>
    <item>
      <title>Copy and delete text files?</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237926#M88910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the Execute keyword to run a command from within a load script without macros.&lt;/P&gt;&lt;P&gt;First you need to allow external programs... in the load script editor &amp;gt; settings tab (at bottom) &amp;gt; check "Can Excecute External Programs"&lt;/P&gt;&lt;P&gt;Now you can use the Execute keyword to run a command... but need to start "cmd.exe /C" to run as though on command line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;execute cmd.exe /C move InFiles\TestData.txt Outfiles\TestData.txt&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 18:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237926#M88910</guid>
      <dc:creator />
      <dc:date>2010-05-11T18:06:09Z</dc:date>
    </item>
    <item>
      <title>Copy and delete text files?</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237927#M88911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I could execute a BAT-file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 18:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237927#M88911</guid>
      <dc:creator />
      <dc:date>2010-05-11T18:18:42Z</dc:date>
    </item>
    <item>
      <title>Copy and delete text files?</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237928#M88912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, that's what we do to back-up the previous .csv files before loading a new one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 02:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-and-delete-text-files/m-p/237928#M88912</guid>
      <dc:creator />
      <dc:date>2010-05-12T02:21:33Z</dc:date>
    </item>
  </channel>
</rss>

