Solved

VB Code End Process

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

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now