Solved

VB Code End Process

Posted on 2013-06-12
2
339 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
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…

828 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