<?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 Launching a BAT file from BP in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Launching-a-BAT-file-from-BP/m-p/79811#M31643</link>
    <description>Hi All

&amp;nbsp;

&amp;nbsp;I&amp;nbsp;am trying to automate an application which is launched by a BAT file(Batch file). Is there any possible way to launch a BAT file from BP and&amp;nbsp;&amp;nbsp;Is it possible to identify objects&amp;nbsp;in an application launched from Batch file.&amp;nbsp;</description>
    <pubDate>Wed, 21 Mar 2018 17:24:00 GMT</pubDate>
    <dc:creator>maathavanP</dc:creator>
    <dc:date>2018-03-21T17:24:00Z</dc:date>
    <item>
      <title>Launching a BAT file from BP</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Launching-a-BAT-file-from-BP/m-p/79811#M31643</link>
      <description>Hi All

&amp;nbsp;

&amp;nbsp;I&amp;nbsp;am trying to automate an application which is launched by a BAT file(Batch file). Is there any possible way to launch a BAT file from BP and&amp;nbsp;&amp;nbsp;Is it possible to identify objects&amp;nbsp;in an application launched from Batch file.&amp;nbsp;</description>
      <pubDate>Wed, 21 Mar 2018 17:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Launching-a-BAT-file-from-BP/m-p/79811#M31643</guid>
      <dc:creator>maathavanP</dc:creator>
      <dc:date>2018-03-21T17:24:00Z</dc:date>
    </item>
    <item>
      <title>Try the Utility Environment…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Launching-a-BAT-file-from-BP/m-p/79812#M31644</link>
      <description>Try the Utility Environment object and the Start Process action. Note here 'process' means exe (or bat), not a BP process.</description>
      <pubDate>Wed, 21 Mar 2018 18:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Launching-a-BAT-file-from-BP/m-p/79812#M31644</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2018-03-21T18:11:00Z</dc:date>
    </item>
    <item>
      <title>Hi, maddy1505.
Of course it…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Launching-a-BAT-file-from-BP/m-p/79813#M31645</link>
      <description>Hi, maddy1505.
Of course it is possible to identify objects in applications launched from Batch file.
&amp;nbsp;
What you need to do is the following:
* Add a Code&amp;nbsp;action in your object.
* In the Code action, you can put a sentence to launch any type of file. For example, with an object configured to use Visual Basic, I put this code to execute a bat file:&amp;nbsp;
system.diagnostics.process.start(""C:\folder\file_name.bat"").&amp;nbsp;
* Lets say that ""file_name.bat"" file executes a java application. You should create a new object, and in the creation wizard&amp;nbsp;you have to configure this object as&amp;nbsp;""Use an application that is already running"", not from a executable file.
* In the same wizard, indicate the window name of the application and the name of process (take it from the Task Manager, in the application process&amp;nbsp;properties).
* In your process, use the object&amp;nbsp;to execute the .bat file first, and then use the other object to use the java application.
&amp;nbsp;
Tips:
Use ""Windows Exist"" to wait for the application after executing the .bat file. You can find this action in the ""Utility - General"" object.
For java applications (in this example), you have to use Java Access Bridge to identify the elements.
&amp;nbsp;
Good luck.</description>
      <pubDate>Thu, 16 Aug 2018 23:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Launching-a-BAT-file-from-BP/m-p/79813#M31645</guid>
      <dc:creator>RaúlHernández</dc:creator>
      <dc:date>2018-08-16T23:23:00Z</dc:date>
    </item>
  </channel>
</rss>

