<?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: run .bat using Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582751#M597949</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sub Run_BAT&lt;/P&gt;
&lt;P&gt;Set obj = createobject("Wscript.Shell")&lt;/P&gt;
&lt;P&gt;obj.Run "C:\test\test.bat"&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bill&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2019 13:04:36 GMT</pubDate>
    <dc:creator>Bill_Britt</dc:creator>
    <dc:date>2019-05-21T13:04:36Z</dc:date>
    <item>
      <title>run .bat using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582725#M597948</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;i'm trying to run a .bat file using a macro on my local pc.&lt;/P&gt;&lt;P&gt;How can i do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i used this script but nothing happen when i run the macro.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Sub Run_BAT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set obj = createobject("Wscript.Shell")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;obj.Run chr(34) &amp;amp; "C:\ExportMacro\BatchSubstitutetoPickup.bat" &amp;amp; chr(34), 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set obj = Nothing&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;End Sub&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582725#M597948</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2024-11-16T20:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: run .bat using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582751#M597949</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sub Run_BAT&lt;/P&gt;
&lt;P&gt;Set obj = createobject("Wscript.Shell")&lt;/P&gt;
&lt;P&gt;obj.Run "C:\test\test.bat"&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bill&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 13:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582751#M597949</guid>
      <dc:creator>Bill_Britt</dc:creator>
      <dc:date>2019-05-21T13:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: run .bat using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582754#M597950</link>
      <description>&lt;P&gt;Ciao Bill,&lt;/P&gt;&lt;P&gt;is not working - i click run macro but nothing happen.&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 13:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582754#M597950</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2019-05-21T13:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: run .bat using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582762#M597951</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It works for me. See attached video&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bill&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 13:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582762#M597951</guid>
      <dc:creator>Bill_Britt</dc:creator>
      <dc:date>2019-05-21T13:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: run .bat using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582767#M597952</link>
      <description>&lt;P&gt;Are you sure that the macro and the bat didn't run? Including a msgbox with the file-path (and checking if it's really valid) and a pause statement in the bat would be useful to see what happens.&lt;/P&gt;&lt;P&gt;If the path is valid and the bat runs if it's executed manually check if the macro has system-access (about the mid in the left panel within the macro-editor), the user had not disabled the macro-execution and also that ActiveX is enabled on the machine.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 13:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582767#M597952</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-05-21T13:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: run .bat using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582778#M597953</link>
      <description>&lt;P&gt;with button is running fine - the only thing is that i think the .bat is running without admin privileges indeed is not mooving file from one folder to another as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 13:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582778#M597953</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2019-05-21T13:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: run .bat using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582788#M597954</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Just tested moving files and saw no issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post your batch file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bill&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 13:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582788#M597954</guid>
      <dc:creator>Bill_Britt</dc:creator>
      <dc:date>2019-05-21T13:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: run .bat using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582794#M597955</link>
      <description>&lt;P&gt;This is the bat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"C:\Users\asaperi\Downloads\fnr.exe" --cl --dir "c:\ExportMacro" --fileMask "*.txt" --excludeFileMask "*.dll, *.exe" --find """" --replace ""&lt;/P&gt;&lt;P&gt;@echo off&lt;/P&gt;&lt;P&gt;For /f "tokens=1,2,3,4,5 delims=/. " %%a in ('date/T') do set CDate=C:\ExportMacro\FattureOrdine%%a%%b%%c%%d.txt&lt;/P&gt;&lt;P&gt;setlocal enabledelayedexpansion&lt;/P&gt;&lt;P&gt;for /f "delims=" %%A in ('findstr /v "Company#Company Address#CAP#City#State#Country#VAT#ORD|Bill#ORD|BillDescription#Address#PostalCode#ORD|Bill|City#Blank#ORD|Bill|Country#TaxID#Bill#Description#Address1#CAP#City#Blank#Country#ORD|OrderNumber#ORD|OrderType#InvoiceDate#InvoiceDate#LineNumber#Remark#InvoiceNumber#InvoiceType#InvoiceDate#DueDate#CodiceUfficio#Blank#Tipo#Descrizione1#Descrizione2#Unit#Qty#UnitPrice#Taxable#Lot#DataScad Testo#VAT %#VAT#Taxable#Total VAT#Gross#Text#DDT#RDM#PEC#CodiceFiscale#RiferimentoAmministrazione#Natura#Tipo Pagamento#Final" "dataOrdine.txt"') do (&lt;BR /&gt;echo %%A &amp;gt;&amp;gt;%CDate%&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;:break&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 13:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/run-bat-using-Macro/m-p/1582794#M597955</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2019-05-21T13:30:36Z</dc:date>
    </item>
  </channel>
</rss>

