<?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: How to execute .exe which runs on windows using talend. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-exe-which-runs-on-windows-using-talend/m-p/2299848#M72151</link>
    <description>Hi pitani13,&lt;BR /&gt;&lt;BR /&gt;Have you tried to use talend component to achieve your goal? tFileinputXXX--&amp;gt;(Transformed processing)--&amp;gt;tFileOutputXXX.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
    <pubDate>Wed, 14 Oct 2015 04:22:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-14T04:22:38Z</dc:date>
    <item>
      <title>How to execute .exe which runs on windows using talend.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-exe-which-runs-on-windows-using-talend/m-p/2299847#M72150</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;I have a .exe which runs on windows, it reads column in a input file and gives transformed output.&lt;BR /&gt;Requirement: I have multiple Input files and each file has 3 columns, need to pass the 3rd column to .exe and .exe will return transformed output in form of columns in tab delimited say 5 columns. Need to append 1st and 2nd columns from input file to this output, ie, for each input file read by .exe, i need to get one output file with first 2 columns in input file + new columns generated by .exe.&lt;BR /&gt;&amp;nbsp;I tried calling the exe from batch script, the problem here is its taking very long time to read the files and give the ouptut.&lt;BR /&gt;sample data in input file:&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;CYHD&lt;/STRONG&gt; &lt;STRONG&gt;1420071840&lt;/STRONG&gt; &lt;I&gt;CYHD 010024Z AUTO 26017G22KT 3SM -SN FEW021 SCT026 BKN034 OVC041 M12/M14 A2963 RMK SLP072&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;&lt;U&gt;batch script I used:&lt;/U&gt;&lt;BR /&gt;@echo off&lt;BR /&gt;set "TAB=	"&lt;BR /&gt;set "SPACE= "&lt;BR /&gt;set z=0&lt;BR /&gt;set srcdir=C:\Users\502525968\Desktop\Source10\&lt;BR /&gt;set outdir=C:\Users\502525968\Desktop\Target10\&lt;BR /&gt;set filefilter=*.dat&lt;BR /&gt;&lt;BR /&gt;rem rd /s /q %outdir%&lt;BR /&gt;rem mkdir %outdir%&lt;BR /&gt;&lt;BR /&gt;for /r %srcdir% %%g in (%filefilter%) do (&lt;BR /&gt;set currfile=%%~nxg&lt;BR /&gt;echo processing %%~nxg&lt;BR /&gt;for /f "tokens=*" %%r in (%srcdir%/%%~nxg) do (&lt;BR /&gt;	set /a z=0&lt;BR /&gt;	call :processline %%r&lt;BR /&gt;)&lt;BR /&gt;set /a z=0&lt;BR /&gt;call :addcolumn&lt;BR /&gt;)&lt;BR /&gt;set "col1="&lt;BR /&gt;SET "col2="&lt;BR /&gt;SET "col3="&lt;BR /&gt;&lt;BR /&gt;goto :eof&lt;BR /&gt;&lt;BR /&gt;:processline&lt;BR /&gt;&lt;BR /&gt;for /f "tokens=*" %%c IN ("%*") do for %%B in (%%c) do (&amp;nbsp;&lt;BR /&gt;	call :addcolumn %%B&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;exit /b&lt;BR /&gt;&lt;BR /&gt;:addcolumn&lt;BR /&gt;set /a z+=1&lt;BR /&gt;if %z% == 1 (&lt;BR /&gt;		if not "%col1%" == "" (&lt;BR /&gt;			if not "%col2%" == "" (	&lt;BR /&gt;			MetarParser10.exe -m "%col3%" -l &amp;gt;&amp;gt; %outdir%/%currfile%&lt;BR /&gt;			echo %col1%%TAB%%col2%&amp;gt;&amp;gt; %outdir%/%currfile%&lt;BR /&gt;			)&lt;BR /&gt;		)&lt;BR /&gt;	set "col1="&lt;BR /&gt;	set "col2="&lt;BR /&gt;	set "col3="&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;if %z% == 1 (set "col1=%TAB%%1") else ( if %z% == 2 (set "col2=%1") else ( if %z% == 3 (set "col3=%1") else ( set "col3=%col3%%SPACE%%1" )))&lt;BR /&gt;&lt;BR /&gt;exit /b&lt;BR /&gt;&lt;BR /&gt;goto :eof&lt;BR /&gt;&lt;BR /&gt;:eof&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;can we implement this in talend or is there any way to tune this.&lt;BR /&gt;Thanks,&lt;BR /&gt;Srinivas&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 21:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-exe-which-runs-on-windows-using-talend/m-p/2299847#M72150</guid>
      <dc:creator>Srini2</dc:creator>
      <dc:date>2015-10-13T21:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute .exe which runs on windows using talend.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-exe-which-runs-on-windows-using-talend/m-p/2299848#M72151</link>
      <description>Hi pitani13,&lt;BR /&gt;&lt;BR /&gt;Have you tried to use talend component to achieve your goal? tFileinputXXX--&amp;gt;(Transformed processing)--&amp;gt;tFileOutputXXX.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 14 Oct 2015 04:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-exe-which-runs-on-windows-using-talend/m-p/2299848#M72151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-14T04:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute .exe which runs on windows using talend.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-execute-exe-which-runs-on-windows-using-talend/m-p/2299849#M72152</link>
      <description>Hi, how can we call .exe which executes on windows in talend and can we pass parameter to the .exe in talend.
&lt;BR /&gt;
&lt;BR /&gt;Thank you..</description>
      <pubDate>Wed, 14 Oct 2015 12:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-execute-exe-which-runs-on-windows-using-talend/m-p/2299849#M72152</guid>
      <dc:creator>Srini2</dc:creator>
      <dc:date>2015-10-14T12:26:56Z</dc:date>
    </item>
  </channel>
</rss>

