|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
End ProcessesI am writing a program that will remove some adware, but I need some
way to close some processes that are not windowed. If anyone can post an example for the program "exactUpdate.exe" it would be greatly apriacated. All you need to do is declare an Integer that Gets Process By Name. When you
have the process id you can just 'Kill' it - simple Crouchie1998 BA (HONS) MCP MCSE "Rich" <RMSUPERSTA***@gmail.com> schrieb: Take a look at the 'System.Diagnostics.Process' class and its 'Kill' method.>I am writing a program that will remove some adware, but I need some > way to close some processes that are not windowed. If anyone can post > an example for the program "exactUpdate.exe" it would be greatly > apriacated. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Herfried K. Wagner [MVP] wrote:
Show quoteHide quote > "Rich" <RMSUPERSTA***@gmail.com> schrieb: Yeah, I can see it in the object browser but it is not avalible when I> >I am writing a program that will remove some adware, but I need some > > way to close some processes that are not windowed. If anyone can post > > an example for the program "exactUpdate.exe" it would be greatly > > apriacated. > > Take a look at the 'System.Diagnostics.Process' class and its 'Kill' method. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/> am trying to program. I have it set up as below: Dim D As New System.Diagnostics.Process D = What should I do With D or should I just get rid of this? "Rich" <RMSUPERSTA***@gmail.com> schrieb: \\\> Yeah, I can see it in the object browser but it is not avalible when I > am trying to program. I have it set up as below: > > Dim D As New System.Diagnostics.Process > D = > > What should I do With D or should I just get rid of this? Dim Processes() As Process = Process.GetProcessesByName("bla") For Each p As Process In Processes p.Kill() Next p /// -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> That's what I would do too, but remember to add the import line:
Imports System.Diagnostics Obviously, Herfried's "bla" is your "exactUpdate.exe" Crouchie1998 BA (HONS) MCP MCSE "Crouchie1998" <crouchie1998@spamcop.net> schrieb: I didn't mention that because VB.NET project templates include a > That's what I would do too, but remember to add the import line: > > Imports System.Diagnostics project-wide import for this namespace. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> You just uploaded the answer to the question a few seconds before I wound
have uploaded the same code myself Oh well. At least the user has his/her answer now. Take it easy, Herfried Crouchie1998 BA (HONS) MCP MCSE "Crouchie1998" <crouchie1998@spamcop.net> schrieb:
> Oh well. At least the user has his/her answer now. > > Take it easy, Herfried :-) --
M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
What is your weightage of the 3 characteristics of Object-Oriented Programming....
Formatting Currency How to protect my data in Executable file? building your own Framework: why?? SQL Querry question Looking for a better way to compress images. Disable the popup security message from Outlook2003. Menu hot-keys don't underline Assembly location Open & Read Excel files from VB.NET |
|||||||||||||||||||||||