Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

On application execute

Posted on 2004-08-23
3
Medium Priority
?
228 Views
Last Modified: 2010-04-23
How do I monitor what application is executed when my application is running, what system event is it? And how can I pass the application name to a function, along with stopping the application from running. I know this can be done with group policy, but how do I do it via VB.NET?
0
Comment
Question by:drakkarnoir
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
Scoobyed earned 2000 total points
ID: 11879144
not tried any process monitor ability, maybe with wmi,
http://www.winnetmag.com/WindowsScripting/Articles/ArticleID/15643/pg/2/2.html
can search through all running processes
      Dim pr As Process
      Dim prs As Process()
      Dim index As Integer
      prs = Process.GetProcesses
      For index = 0 To prs.Length - 1
        Try
          pr = prs(index)
          if pr.ProcessName = "kill me"
             pr.Kill()
          End If
        Catch ex As Exception
        End Try
      Next
can find out name pr.ProcessName, where the exe for process is pr.MainModule.FileName etc. (to decide if to stop it) http://msdn.microsoft.com/msdnmag/issues/02/09/AdvancedBasics/default.aspx
0
 
LVL 3

Assisted Solution

by:Scoobyed
Scoobyed earned 2000 total points
ID: 11879161
0
 

Author Comment

by:drakkarnoir
ID: 11883661
Well those links don't really have what I am looking for. Example, say I only want the IEXPLORE.exe to be allowed, how would I do that?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
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 …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

688 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