Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
i am just looking for a piece of code that i can fit into mine. I need to be able to scan for a specific process or scan the computer for a specific file.
Posted
There are going to be fewer processes running than files on your computer so scanning processes would certianly be faster. This post shows how to loop through all running proccesses and then kill one. You wouldn't want to run the kill code, obviously. Of course, if the process you are looking for isn't running, that doesn't mean it isn't on the hard drive.
Posted
I need something that does this: for example i have a text file and i want to have a list of processes in that text file that i want to end/stop. I need a piece of code to read the text file then end the processes that are running.
Posted
Between the link that I just gave you and the StreamReader Class you should be able to figure this out fairly easily. Give it a shot and if you are still having some troubles, post back here with some code you're having trouble with. These are some good code snippets -- if I've understood you correctly, they are pretty much all you'll need to put the required functionality together.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...