<?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 get QV variable values to bat script ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-QV-variable-values-to-bat-script/m-p/354111#M131404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I want to set up a batch file to run QV automatically and then transfer stored txt file D:\QMC.txt to zip file. After that sent to server.&lt;/P&gt;&lt;P&gt;The bat file below works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; "c:\program files\qlikview\qv.exe" /r -vPaticipantCodeType=AMC "d:\Export\TestExport.qvw"&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;set MyFilename="D:\QMC.zip"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;"c:\program files\winrar\rar.exe" a %MyFilename% "D:\QMC.txt" &lt;/SPAN&gt;&lt;BR /&gt;echo servername&amp;gt;ftp.txt&lt;BR /&gt;echo password&amp;gt;&amp;gt;ftp.txt&lt;BR /&gt;echo binary&amp;gt;&amp;gt;ftp.txt&lt;BR /&gt;echo cd XX&amp;gt;&amp;gt;ftp.txt&lt;BR /&gt;echo put %MyFilename%&amp;gt;&amp;gt;ftp.txt&lt;BR /&gt;echo quit&amp;gt;&amp;gt;ftp.txt&lt;BR /&gt;ftp -s:"ftp.txt" ncexx.com &lt;BR /&gt;del %MyFilename%&lt;BR /&gt;del ftp.txt&lt;BR /&gt;set MyFilename=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is QMC.txt is just a test file name. The really file name is dynamic, getting from variables from QV. I don't know how to get variable values to bat script to create a dynamic file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example the stored txt file from QV is $(vDate)$(vSequenceNo).txt&amp;nbsp; The vDate and vSequenceNo are variables in QlikView script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the variable values from QlikView? I have tried $(vDate)$(vSequenceNo) and %vDate%%vSequenceNo% and&amp;nbsp; they didn't work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #ff0000;"&gt;set MyFilename="D:\$(vDate)$(vSequenceNo).zip"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;"c:\program files\winrar\rar.exe" a %MyFilename% "D:\$(vDate)$(vSequenceNo).txt"&amp;nbsp;&amp;nbsp; (Not work) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;SPAN style="color: #ff0000;"&gt;set MyFilename="D:\ %vDate%%vSequenceNo%zip"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;"c:\program files\winrar\rar.exe" a %MyFilename% " D:\%vDate%%vSequenceNo%txt"&amp;nbsp; (Not work) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Can anyone help me please? Thanks! &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2012 01:49:50 GMT</pubDate>
    <dc:creator>NZFei</dc:creator>
    <dc:date>2012-04-17T01:49:50Z</dc:date>
    <item>
      <title>How to get QV variable values to bat script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-QV-variable-values-to-bat-script/m-p/354111#M131404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I want to set up a batch file to run QV automatically and then transfer stored txt file D:\QMC.txt to zip file. After that sent to server.&lt;/P&gt;&lt;P&gt;The bat file below works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; "c:\program files\qlikview\qv.exe" /r -vPaticipantCodeType=AMC "d:\Export\TestExport.qvw"&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;set MyFilename="D:\QMC.zip"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;"c:\program files\winrar\rar.exe" a %MyFilename% "D:\QMC.txt" &lt;/SPAN&gt;&lt;BR /&gt;echo servername&amp;gt;ftp.txt&lt;BR /&gt;echo password&amp;gt;&amp;gt;ftp.txt&lt;BR /&gt;echo binary&amp;gt;&amp;gt;ftp.txt&lt;BR /&gt;echo cd XX&amp;gt;&amp;gt;ftp.txt&lt;BR /&gt;echo put %MyFilename%&amp;gt;&amp;gt;ftp.txt&lt;BR /&gt;echo quit&amp;gt;&amp;gt;ftp.txt&lt;BR /&gt;ftp -s:"ftp.txt" ncexx.com &lt;BR /&gt;del %MyFilename%&lt;BR /&gt;del ftp.txt&lt;BR /&gt;set MyFilename=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is QMC.txt is just a test file name. The really file name is dynamic, getting from variables from QV. I don't know how to get variable values to bat script to create a dynamic file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example the stored txt file from QV is $(vDate)$(vSequenceNo).txt&amp;nbsp; The vDate and vSequenceNo are variables in QlikView script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the variable values from QlikView? I have tried $(vDate)$(vSequenceNo) and %vDate%%vSequenceNo% and&amp;nbsp; they didn't work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #ff0000;"&gt;set MyFilename="D:\$(vDate)$(vSequenceNo).zip"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;"c:\program files\winrar\rar.exe" a %MyFilename% "D:\$(vDate)$(vSequenceNo).txt"&amp;nbsp;&amp;nbsp; (Not work) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;SPAN style="color: #ff0000;"&gt;set MyFilename="D:\ %vDate%%vSequenceNo%zip"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;"c:\program files\winrar\rar.exe" a %MyFilename% " D:\%vDate%%vSequenceNo%txt"&amp;nbsp; (Not work) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Can anyone help me please? Thanks! &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 01:49:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-QV-variable-values-to-bat-script/m-p/354111#M131404</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2012-04-17T01:49:50Z</dc:date>
    </item>
    <item>
      <title>How to get QV variable values to bat script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-QV-variable-values-to-bat-script/m-p/354112#M131405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not an expert in Qlikview but maybe if you can use two folders("all" and "latest") and make qlikview send the newest file to say folder "latest" then make your batch file take the file from that folder and after making the necessary(zipping and sending to server) move the file to folder "all"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 08:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-QV-variable-values-to-bat-script/m-p/354112#M131405</guid>
      <dc:creator />
      <dc:date>2012-05-24T08:39:13Z</dc:date>
    </item>
  </channel>
</rss>

