Sign in to follow this  
Followers 0
mlloz

Process functions

7 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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..

Share this post


Link to post
Share on other sites

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=252761

This won't work on windows 2000, I use the above for all other's, and pssuspend.exe from sysinternals for windows 2k.


[center]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.[/center]

Share this post


Link to post
Share on other sites

ok guys and about the username?

Share this post


Link to post
Share on other sites

WMI can return process info like username of a process. Have a search in Scripts'n'Scraps for Scriptomatic.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0