<?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 Copy and Reload a qvw using Command Line or VBS in background in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Copy-and-Reload-a-qvw-using-Command-Line-or-VBS-in-background/m-p/1047240#M639947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got a requirement to copy a qvw to another qvw and reload that qvw in background, i have done some scripting but could able to figure out the over all picture,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Copying i used&lt;/P&gt;&lt;P&gt;OldFile = "...\\SectionAccessforEmployeeHierarchy\BASE.qvw"&lt;/P&gt;&lt;P&gt;Set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;SET myfile = fso.getfile(OldFile)&lt;/P&gt;&lt;P&gt;myfile.copy ("&lt;SPAN style="font-size: 13.3333px;"&gt;...\\&lt;/SPAN&gt;SectionAccessforEmployeeHierarchy\Employee&amp;amp;Position.qvw")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Reloading:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"c:\Program Files\QlikView\QV.exe" /r&amp;nbsp; /vbatch_flag=1 "..\\SectionAccessforEmployeeHierarchy\Employee&amp;amp;Position.qvw"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this two process are working separately but when i combine them into one file and trying it to execute, it is showing some exception, Please go through with them and let me know if i am missing any thing ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &amp;amp; Thanks,&lt;/P&gt;&lt;P&gt;Siva &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2016 20:37:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-16T20:37:03Z</dc:date>
    <item>
      <title>Copy and Reload a qvw using Command Line or VBS in background</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-and-Reload-a-qvw-using-Command-Line-or-VBS-in-background/m-p/1047240#M639947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got a requirement to copy a qvw to another qvw and reload that qvw in background, i have done some scripting but could able to figure out the over all picture,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Copying i used&lt;/P&gt;&lt;P&gt;OldFile = "...\\SectionAccessforEmployeeHierarchy\BASE.qvw"&lt;/P&gt;&lt;P&gt;Set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;SET myfile = fso.getfile(OldFile)&lt;/P&gt;&lt;P&gt;myfile.copy ("&lt;SPAN style="font-size: 13.3333px;"&gt;...\\&lt;/SPAN&gt;SectionAccessforEmployeeHierarchy\Employee&amp;amp;Position.qvw")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Reloading:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"c:\Program Files\QlikView\QV.exe" /r&amp;nbsp; /vbatch_flag=1 "..\\SectionAccessforEmployeeHierarchy\Employee&amp;amp;Position.qvw"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this two process are working separately but when i combine them into one file and trying it to execute, it is showing some exception, Please go through with them and let me know if i am missing any thing ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &amp;amp; Thanks,&lt;/P&gt;&lt;P&gt;Siva &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 20:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-and-Reload-a-qvw-using-Command-Line-or-VBS-in-background/m-p/1047240#M639947</guid>
      <dc:creator />
      <dc:date>2016-02-16T20:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Copy and Reload a qvw using Command Line or VBS in background</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-and-Reload-a-qvw-using-Command-Line-or-VBS-in-background/m-p/1047241#M639948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To execute a batch-file from vbs you could use a code-snippet like this from: &lt;A href="http://qlikviewmaven.blogspot.de/2008/08/qlikview-command-line-and-automation.html" title="http://qlikviewmaven.blogspot.de/2008/08/qlikview-command-line-and-automation.html"&gt;QlikView Maven: QlikView Command Line and Automation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new; font-size: 85%;"&gt;Set objShell = CreateObject("WScript.Shell")&lt;BR /&gt;objShell.Run """c:\Program Files\QlikView\QV.exe"" /r /vbatch_flag=1 c:\reports\Inventory.qvw"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What your code might mssing is a sleep-statement between copy and reloading and if the copy-job isn't finished before starting the reload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 09:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-and-Reload-a-qvw-using-Command-Line-or-VBS-in-background/m-p/1047241#M639948</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-02-17T09:06:17Z</dc:date>
    </item>
  </channel>
</rss>

