<?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 how to delete file? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148737#M26988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this is another way possible. But then make sure to make a registry adjustment in the server.&lt;/P&gt;&lt;P&gt;See &lt;A href="http://community.qlik.com/forums/p/16459/64216.aspx"&gt;http://community.qlik.com/forums/p/16459/64216.aspx&lt;/A&gt; for details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2009 08:15:17 GMT</pubDate>
    <dc:creator>disqr_rm</dc:creator>
    <dc:date>2009-07-08T08:15:17Z</dc:date>
    <item>
      <title>how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148733#M26984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello guys [:)]&lt;/P&gt;&lt;P&gt;I have a question and I think ( and hope) that it quite simple to done.&lt;/P&gt;&lt;P&gt;I'm loading data from an EXCEL file.&lt;/P&gt;&lt;P&gt;after loading the file I want to delete it from the directory its located,how can I do that from that script?&lt;/P&gt;&lt;P&gt;Is it possible to move it to another directory instead of deleting it?&lt;/P&gt;&lt;P&gt;Do I need to use a batch file? ( I really prefer not to)&lt;/P&gt;&lt;P&gt;10X&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 21:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148733#M26984</guid>
      <dc:creator />
      <dc:date>2009-07-07T21:12:39Z</dc:date>
    </item>
    <item>
      <title>how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148734#M26985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a VBScript function and then call it from your QlikView script just after the load. See enclosed example.&lt;/P&gt;&lt;P&gt;Make sure to change the file paths and give System access in the Macro to be able to delete the file.&lt;/P&gt;&lt;P&gt;Let me know if it helped by verifying the solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 00:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148734#M26985</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-07-08T00:43:36Z</dc:date>
    </item>
    <item>
      <title>how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148735#M26986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above solution will not work if you are reloading in Publisher, in that case you will need to use a bat file as Pub does not fire off any macros. Just in case you are using Publisher for reloads &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;/Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 07:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148735#M26986</guid>
      <dc:creator>Karl_Humma</dc:creator>
      <dc:date>2009-07-08T07:31:41Z</dc:date>
    </item>
    <item>
      <title>how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148736#M26987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible to implement this without macro.&lt;BR /&gt;One of my apps reads XML files, and moves them after that into a different folder. Technically not much different from delete. I'm using external batch file for this. This file is called within the reload script by the Execute command.&lt;BR /&gt;Just noticed that David doesn't want batch file... &lt;IMG alt="Sad" src="http://community.qlik.com/emoticons/emotion-6.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 07:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148736#M26987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-08T07:40:31Z</dc:date>
    </item>
    <item>
      <title>how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148737#M26988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this is another way possible. But then make sure to make a registry adjustment in the server.&lt;/P&gt;&lt;P&gt;See &lt;A href="http://community.qlik.com/forums/p/16459/64216.aspx"&gt;http://community.qlik.com/forums/p/16459/64216.aspx&lt;/A&gt; for details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 08:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148737#M26988</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-07-08T08:15:17Z</dc:date>
    </item>
    <item>
      <title>how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148738#M26989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;thanx Rakesh it seem to be working!&lt;/P&gt;&lt;P&gt;Michael,Can you add your solution with the batch file? simultaneously I will check this one&lt;/P&gt;&lt;P&gt;and see if it fits.&lt;/P&gt;&lt;P&gt;Thanx &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 13:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148738#M26989</guid>
      <dc:creator />
      <dc:date>2009-07-08T13:17:40Z</dc:date>
    </item>
    <item>
      <title>how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148739#M26990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is code line for EXECUTE command prompt commands from script:&lt;/P&gt;&lt;P&gt;Execute cmd /C del /Q "filepath\filename";&lt;/P&gt;&lt;P&gt;Please make sure to make registry adjustments in the server as mentioned in earlier post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 01:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148739#M26990</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-07-09T01:55:15Z</dc:date>
    </item>
    <item>
      <title>how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148740#M26991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rakesh, Do I need to build a batch file? if yes,what it contains?&lt;/P&gt;&lt;P&gt;I'm quite new in QV so.....can you please attach an example? &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;thanx in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 13:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148740#M26991</guid>
      <dc:creator />
      <dc:date>2009-07-09T13:03:18Z</dc:date>
    </item>
    <item>
      <title>how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148741#M26992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you would put this line in the QVW script just after your load statement:&lt;/P&gt;&lt;P&gt;Execute cmd /C del /Q "filepath\filename";&lt;/P&gt;&lt;P&gt;This line will execute a DOS command "DEL" to delete the file in the quotes with "Q" option for "quietly".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2009 02:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148741#M26992</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-07-10T02:35:27Z</dc:date>
    </item>
    <item>
      <title>how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148742#M26993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;I cannot post my application, and don't have enough time now to create an example, sorry. Here is the description:&lt;BR /&gt;I have file move.bat with one line inside, like this:&lt;BR /&gt;&lt;STRONG&gt;move Folder1\*.xml folder2\&lt;/STRONG&gt;&lt;BR /&gt;It moves all xml files from one directory to another. You can use a line here that deletes fiels.&lt;BR /&gt;Next, in the QV application script, there is line (after I read the xml data):&lt;BR /&gt;&lt;STRONG&gt;EXECUTE move.bat;&lt;/STRONG&gt;&lt;BR /&gt;The only other things I have to add:&lt;BR /&gt;1. Make sure to check "Can Execute External Programs" box on the "Setting" tab of the script editor.&lt;BR /&gt;2. On the user preferences, Security - check the box "Script..."&lt;BR /&gt;Hope it helps...&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;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2009 23:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148742#M26993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-10T23:59:06Z</dc:date>
    </item>
    <item>
      <title>how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148743#M26994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;I am trying the same thing you did. I have got a working batch file (if I execute it manually) in the same directory as the .csv I want to move after reload. But when I put&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;EXECUTE C:\QlikView Storage\Private Data\Datasources\Input\TMS\ConfigLijst\move.bat;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;in my script it won't move the file. My batchfile looks like this:&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;@echo off&lt;BR /&gt;move /Y "*.csv" "old\"&lt;BR /&gt;echo on&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The reload window says done but nothing happens! When I put the QlikView application in the same folder as the .bat and remove the path it does work...&lt;/P&gt;&lt;P&gt;Is there something wrong with the way I call the path?&lt;/P&gt;&lt;P&gt;Regards, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 22:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148743#M26994</guid>
      <dc:creator />
      <dc:date>2009-11-17T22:28:07Z</dc:date>
    </item>
    <item>
      <title>how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148744#M26995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sander,&lt;BR /&gt;It's hard to tell what's going on... If EXECUTE doesn't work - check the conditions I've mentioned above. If that batch file doesn't work - see if it executes manually. Also makes sense to check if there are security restrctions on files and folders.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 23:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148744#M26995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-19T23:56:29Z</dc:date>
    </item>
    <item>
      <title>how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148745#M26996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;Thanks for your response. I don't know how but the problem is solved.. The only thing I can imagine is that the relative path I defined wasn't processed ok.. Manual execution did work ok, I had checked that.. It was in QlikView or the script.&lt;/P&gt;&lt;P&gt;Anyway.. Your solution does the trick, even in Publisher. Thanks!&lt;/P&gt;&lt;P&gt;Regards, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 23:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148745#M26996</guid>
      <dc:creator />
      <dc:date>2009-12-02T23:24:53Z</dc:date>
    </item>
    <item>
      <title>how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148746#M26997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had trouble with the path statement too. I moved the .bat file i wanted to execute to the same folder as the .qvw and I also renamed the .bat file to have no spaces. Also make sure you check to allow script (Allow Database Write and Execute Statement) under Settings User Preferences&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 12:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148746#M26997</guid>
      <dc:creator>bradshields</dc:creator>
      <dc:date>2010-02-02T12:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148747#M26998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp; Rakesh! It works fine!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 13:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148747#M26998</guid>
      <dc:creator>juan_c_martinez</dc:creator>
      <dc:date>2014-05-30T13:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148748#M26999</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;Could not open the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you Please send the Batch file to delete and archive the files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I tired you QVW its deleting the files But could I archive the files also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 12:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/148748#M26999</guid>
      <dc:creator />
      <dc:date>2014-11-24T12:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete file?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/1557111#M440961</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;this works perfect. but can we have a function to open another qvw using a function like this.?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 11:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-delete-file/m-p/1557111#M440961</guid>
      <dc:creator>madushanfernand</dc:creator>
      <dc:date>2019-03-15T11:31:21Z</dc:date>
    </item>
  </channel>
</rss>

