Solved

VB Code End Process

Posted on 2013-06-12
2
337 Views
Last Modified: 2013-06-13
How can I modify my code so that the java.exe *32 process stops that  you see in the screen print?

sc
0
Comment
Question by:lrbrister
2 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39242794
Try:

Import System.Diagnostics

...

For Each proc As Process in Process.GetProcesses()
    If proc.Name = "java" Then proc.Kill()
Next

Open in new window

0
 

Author Closing Comment

by:lrbrister
ID: 39244298
You put me on the right track.

This is what actually was the working code

            For Each jr In Process.GetProcessesByName("Java")
                Try
                    jr.Kill()
                Catch
                End Try
            Next
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question