Solved

On application execute

Posted on 2004-08-23
3
189 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
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
Scoobyed earned 500 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 500 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

17 Experts available now in Live!

Get 1:1 Help Now