<?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: kill excel instance in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/kill-excel-instance/m-p/91823#M41753</link>
    <description>The best way is to use &lt;SPAN&gt;MS Excel VBO and use the Exit and Close Instances actions. One&amp;nbsp;can also use close all instances.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For kill instance simply try "EXCEL" !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;Vipul Tiwari&lt;BR /&gt;Senior Process Simplification and Optimization Designer(Solutions Architect)&lt;BR /&gt;Fidelity International&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 06 Sep 2021 04:18:00 GMT</pubDate>
    <dc:creator>EVIPUTI</dc:creator>
    <dc:date>2021-09-06T04:18:00Z</dc:date>
    <item>
      <title>kill excel instance</title>
      <link>https://community.blueprism.com/t5/Product-Forum/kill-excel-instance/m-p/91822#M41752</link>
      <description>&lt;SPAN&gt;I am trying to Kill excel instance by its Process Name with Kill Process Action but seems i am failing to do so . Even after killing the instance the file says it is locked by user ?&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pratiksha Tiwari&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Sep 2021 04:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/kill-excel-instance/m-p/91822#M41752</guid>
      <dc:creator>PratikshaTiwari</dc:creator>
      <dc:date>2021-09-06T04:02:00Z</dc:date>
    </item>
    <item>
      <title>RE: kill excel instance</title>
      <link>https://community.blueprism.com/t5/Product-Forum/kill-excel-instance/m-p/91823#M41753</link>
      <description>The best way is to use &lt;SPAN&gt;MS Excel VBO and use the Exit and Close Instances actions. One&amp;nbsp;can also use close all instances.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For kill instance simply try "EXCEL" !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;Vipul Tiwari&lt;BR /&gt;Senior Process Simplification and Optimization Designer(Solutions Architect)&lt;BR /&gt;Fidelity International&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Sep 2021 04:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/kill-excel-instance/m-p/91823#M41753</guid>
      <dc:creator>EVIPUTI</dc:creator>
      <dc:date>2021-09-06T04:18:00Z</dc:date>
    </item>
    <item>
      <title>RE: kill excel instance</title>
      <link>https://community.blueprism.com/t5/Product-Forum/kill-excel-instance/m-p/91824#M41754</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;The "Kill Process" included in the "Utility&lt;SPAN&gt;&amp;nbsp;- Environment&lt;/SPAN&gt;" VBO is not able to completely kill the process.&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.kill?view=netframework-4.8" target="_blank" rel="noopener" title="Process.Kill Method"&gt;https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.kill?view=netframework-4.8&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19631.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/19784i801B9FCA919C1114/image-size/large?v=v2&amp;amp;px=999" role="button" title="19631.png" alt="19631.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;So I created an object to completely kill using code stage.&lt;BR /&gt;Input: &lt;SPAN&gt;ProcessName(text)&lt;BR /&gt;&lt;/SPAN&gt;Output: nothing&lt;/P&gt;
&lt;PRE class="language-vb"&gt;&lt;CODE&gt;Dim p As New System.Diagnostics.Process()

p.StartInfo.FileName = System.Environment.GetEnvironmentVariable("ComSpec")

p.StartInfo.Arguments = "/c taskkill /F /T /FI ""username eq %USERNAME%"" /IM " &amp;amp; ProcessName

p.StartInfo.UseShellExecute = false
p.StartInfo.CreateNoWindow = true

p.Start()
p.WaitForExit()
p.Close()​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can kill Excel processes completely by giving "EXCEL.EXE" as the input argument "ProcessName".&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mitsuko &lt;BR /&gt;Asia/Tokyo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Sep 2021 00:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/kill-excel-instance/m-p/91824#M41754</guid>
      <dc:creator>sumire</dc:creator>
      <dc:date>2021-09-07T00:59:00Z</dc:date>
    </item>
    <item>
      <title>RE: kill excel instance</title>
      <link>https://community.blueprism.com/t5/Product-Forum/kill-excel-instance/m-p/91825#M41755</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/296"&gt;@sumire&lt;/a&gt; This is useful , thanks for sharing.​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;Vipul Tiwari&lt;BR /&gt;Senior Process Simplification and Optimization Designer(Solutions Architect)&lt;BR /&gt;Fidelity International&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Sep 2021 04:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/kill-excel-instance/m-p/91825#M41755</guid>
      <dc:creator>EVIPUTI</dc:creator>
      <dc:date>2021-09-07T04:49:00Z</dc:date>
    </item>
    <item>
      <title>RE: kill excel instance</title>
      <link>https://community.blueprism.com/t5/Product-Forum/kill-excel-instance/m-p/91826#M41756</link>
      <description>Hello Pratiksha,&lt;BR /&gt;Why not use close all instance action of MS Excel VBO?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ved Sengupta&lt;BR /&gt;RPA Developer&lt;BR /&gt;Deloitte India (Offices of the US)&lt;BR /&gt;Bangalore | INDIA&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Sep 2021 04:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/kill-excel-instance/m-p/91826#M41756</guid>
      <dc:creator>VedSengupta</dc:creator>
      <dc:date>2021-09-11T04:26:00Z</dc:date>
    </item>
  </channel>
</rss>

