Jump to content
Sign in to follow this  
mlloz

Process functions

Recommended Posts

mlloz

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
FuryCell

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
Richard Robertson

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
mlloz

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
SmOke_N

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.


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.

Share this post


Link to post
Share on other sites
MHz

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.