mlloz Posted November 4, 2006 Posted November 4, 2006 Well, I'm proud with this type of scripting langauge, I'm using it from 2 years ago, and I've bet too many people in semi-impossible happening things.. few days ago I've tried to write a miracle to remove the W32/Rontokbro virus, but two problems faced me, so I need some assistance in them.. 1st of all, I want a procedure to forcibly Kill some running processes, not close, and not using Run() function to call other windows tools. 2nd thing, how to know the username of a specific Process?, no matter in using APIs or creating a UDF.. I'm really want these things to complete my script.
FuryCell Posted November 4, 2006 Posted November 4, 2006 I want a procedure to forcibly Kill some running processes, not close, and not using Run() function to call other windows tools.Take a look at processclose(). HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Richard Robertson Posted November 4, 2006 Posted November 4, 2006 When a process is unloaded, close and kill mean the same thing unless the process has protected itself. msiexec is a protected process and has some weird access limits. ProcessClose is what you want. A process cannot be asked to close, you are merely misunderstanding the name.
mlloz Posted November 5, 2006 Author Posted November 5, 2006 i tried ProcessClose() but its returns an error and nothing happens to the process, also i tried Run() to execute the 'taskkill.exe' but its looks like i'm writing a batch file..
Moderators SmOke_N Posted November 5, 2006 Moderators Posted November 5, 2006 i tried ProcessClose() but its returns an error and nothing happens to the process, also i tried Run() to execute the 'taskkill.exe' but its looks like i'm writing a batch file..The Kandie Man provided an example of how to pause a process, maybe you can pause it then kill it.http://www.autoitscript.com/forum/index.ph...st&p=252761This won't work on windows 2000, I use the above for all other's, and pssuspend.exe from sysinternals for windows 2k. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
MHz Posted November 6, 2006 Posted November 6, 2006 WMI can return process info like username of a process. Have a search in Scripts'n'Scraps for Scriptomatic.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now