<?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: Copying file from Server to different location in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350899#M844492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hartmann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. How can I call it in script? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Apr 2017 07:03:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-04-06T07:03:55Z</dc:date>
    <item>
      <title>Copying file from Server to different location</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350897#M844490</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;&lt;/P&gt;&lt;P&gt;we have a issue in inability to see Log files as Server is managed by different team and it is difficult to get Log files from server. I was thinking of copying Log files from Server to NAS drive in my access. Server read data from this NAS hence it should have access. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on another forum I wrote following code which was working fine for the discussion poster. Unfortunately doesn't work for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ProcLogMove&lt;/P&gt;&lt;P&gt;Set vExec = "C:\IBM\1.qvw.log" "C:\IBM\1\1.qvw.log";&lt;/P&gt;&lt;P&gt;execute cmd.exe /C xcopy $(vExec) /Y;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From further read it looks like execute command requires changes in settings.ini which is not possible.. so may not be the right solution for me. Anything else that I can use to copy log file using Qlik script with no other changes in server side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried following code in script and Macro window but it failed to do anything&lt;/P&gt;&lt;P&gt;Sub LogMove&lt;/P&gt;&lt;P&gt;dim fso&lt;/P&gt;&lt;P&gt;set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;fso.CopyFile "C:\IBM\1.qvw.log", "C:\IBM\1\1.qvw.log"&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not receive any error in log file. Sorry if I am talking too dumb as I am new to Qlik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350897#M844490</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Copying file from Server to different location</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350898#M844491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your second macro works fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you setup your module like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/159207_Unbenannt.png" style="height: 680px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 06:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350898#M844491</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-04-06T06:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Copying file from Server to different location</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350899#M844492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hartmann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. How can I call it in script? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 07:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350899#M844492</guid>
      <dc:creator />
      <dc:date>2017-04-06T07:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Copying file from Server to different location</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350900#M844493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need to make a function like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function LogMove&lt;/P&gt;&lt;P&gt;dim fso&lt;/P&gt;&lt;P&gt;set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;fso.CopyFile "C:\IBM\1.qvw.log", "C:\IBM\1\1.qvw.log"&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you are able to call the function in script!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 07:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350900#M844493</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-04-06T07:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Copying file from Server to different location</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350901#M844494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hartmann,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. I created macro and tried calling that macro function in script using&lt;STRONG&gt; Call functionName;&lt;/STRONG&gt; though when called it ask for permission to execute system access command. At server it is all automated so no manual intervention possible to click on button and accept risk. We can not modify any server ini files as well. What is the way to handle this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 23:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350901#M844494</guid>
      <dc:creator />
      <dc:date>2017-04-06T23:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Copying file from Server to different location</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350902#M844495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure if this helps, but try to call the function like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;let vlog = LogMove();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Module:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Function LogMove&lt;/P&gt;&lt;P&gt;dim fso&lt;/P&gt;&lt;P&gt;set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;fso.CopyFile "C:\Users\Admin\Desktop\log.log", "C:\Users\Admin\Desktop\Neuer Ordner (2)\log.log"&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 06:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350902#M844495</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-04-07T06:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Copying file from Server to different location</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350903#M844496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all apologies for calling you by family name. It worked. Thanks heaps for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 06:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-file-from-Server-to-different-location/m-p/1350903#M844496</guid>
      <dc:creator />
      <dc:date>2017-04-10T06:12:56Z</dc:date>
    </item>
  </channel>
</rss>

