<?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: Is it possible Delete a file using a macro Server Side? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834830#M293707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;I have tested the proposal solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sub DeleteFile&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; fso.DeleteFile "D:\temp\somefile.txt"&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;End Sub&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;When I run the application in my access point, the istruction &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt; fso.DeleteFile "D:\temp\somefile.txt" &lt;/STRONG&gt;delete (or try to delete) the file D:\temp\somefile.txt&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/STRONG&gt;in my pc and &lt;STRONG&gt;not in server folder &lt;/STRONG&gt;(my target).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If is it impossible to do this via macro istrucion (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;fso.DeleteFile "D:\temp\somefile.txt"), can I run a cmd command (cmd.exe /c del &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;D:\temp\somefile.txt) by macro or by action&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Many thanks for your support!&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Fabio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2015 11:19:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-13T11:19:25Z</dc:date>
    <item>
      <title>Is it possible Delete a file using a macro Server Side?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834827#M293704</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;I have an application published in my server and I want delete a file (.csv, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;saved in same server&lt;/SPAN&gt;) using a macro, is it possible do it? I don't know, maybe exist &lt;SPAN style="font-size: 13.3333330154419px;"&gt;something like ServerSideExportEx (to export file into a server)...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I use QlikView 11.20 SR10 and IEplugin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Fabio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 15:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834827#M293704</guid>
      <dc:creator />
      <dc:date>2015-07-08T15:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible Delete a file using a macro Server Side?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834828#M293705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible given that you have set up the application and the server to allow this according to security settings. You can take advantage of the FileSystemObjects component in VBScript where you have access to various file operations that you can perform. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 16:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834828#M293705</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-07-08T16:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible Delete a file using a macro Server Side?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834829#M293706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sub CreateFile&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set fso = CreateObject("Scripting.FileSystemObject") &lt;/P&gt;&lt;P&gt;&amp;nbsp; fso.CreateTextFile "D:\temp\somefile.txt", -1 &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub DeleteFile&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set fso = CreateObject("Scripting.FileSystemObject") &lt;/P&gt;&lt;P&gt;&amp;nbsp; fso.DeleteFile "D:\temp\somefile.txt" &lt;/P&gt;&lt;P&gt;End Sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Edit Module of your QlikView Application you should set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requested Module Security = System Access&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Local Security = Allow System Access&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore on the QlikView Server you have to adjust these two settings in the&lt;/P&gt;&lt;P&gt;System/Setup/QlikView Servers/&amp;lt;servername&amp;gt;/Security (tab):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allow unsafe macro execution on server&lt;/P&gt;&lt;P&gt;Allow macro execution on server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 16:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834829#M293706</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-07-08T16:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible Delete a file using a macro Server Side?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834830#M293707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;I have tested the proposal solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sub DeleteFile&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; fso.DeleteFile "D:\temp\somefile.txt"&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;End Sub&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;When I run the application in my access point, the istruction &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt; fso.DeleteFile "D:\temp\somefile.txt" &lt;/STRONG&gt;delete (or try to delete) the file D:\temp\somefile.txt&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/STRONG&gt;in my pc and &lt;STRONG&gt;not in server folder &lt;/STRONG&gt;(my target).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If is it impossible to do this via macro istrucion (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;fso.DeleteFile "D:\temp\somefile.txt"), can I run a cmd command (cmd.exe /c del &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;D:\temp\somefile.txt) by macro or by action&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Many thanks for your support!&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Fabio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 11:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834830#M293707</guid>
      <dc:creator />
      <dc:date>2015-07-13T11:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible Delete a file using a macro Server Side?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834831#M293708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I have two computers where I am able to do this by running Chrome Browser on Computer1 accessing the AccessPoint on Computer2 that is running the QlikView Server and AccessPoint and I am able to Create and Delete a file from Computer1 on Computer2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it must be the settings I mentioned at the end of my previous post that has to be adjusted... It works in my environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Petter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 12:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834831#M293708</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-07-13T12:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible Delete a file using a macro Server Side?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834832#M293709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my minimal test QlikView application that is working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 12:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834832#M293709</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-07-13T12:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible Delete a file using a macro Server Side?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834833#M293710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And yes it is quite possible to execute a program too - by using the WScript.Shell object and using the Exec method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 12:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834833#M293710</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-07-13T12:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible Delete a file using a macro Server Side?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834834#M293711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am able to use the app from my Android phone and my iPad - creating and deleting files on the server. You should however make sure that the QlikView Server account that is running have the rights to do the file operations in the folder that you are using for the file(s).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 12:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-Delete-a-file-using-a-macro-Server-Side/m-p/834834#M293711</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-07-13T12:55:08Z</dc:date>
    </item>
  </channel>
</rss>

