row Posted October 10, 2005 Posted October 10, 2005 im looking for a vb program that can scan a computer looking for a file or a process - whatever is easier. :( Quote
Leaders snarfblam Posted October 10, 2005 Leaders Posted October 10, 2005 Do you have a specific question about such a program? Quote [sIGPIC]e[/sIGPIC]
row Posted October 10, 2005 Author Posted October 10, 2005 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. Quote
mskeel Posted October 10, 2005 Posted October 10, 2005 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. Quote
row Posted October 10, 2005 Author Posted October 10, 2005 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. Quote
mskeel Posted October 10, 2005 Posted October 10, 2005 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.