metallica111 Posted September 17, 2006 Posted September 17, 2006 Sorry because my poor English I have a process Bkav2006.exe How can i code a program to when process Bkav2006.exe run then my program kill this process Run process Bkav2006.exe many times . My program always kill!
AzKay Posted September 17, 2006 Posted September 17, 2006 Look at If...Then, ProcessExists(), And, ProcessClose() # MY LOVE FOR YOU... IS LIKE A TRUCK- #
metallica111 Posted September 17, 2006 Author Posted September 17, 2006 How can i loop it many time if I run many time process bkav.exe i need kill it all timees
Pakku Posted September 17, 2006 Posted September 17, 2006 look at the while loop How can someone use Windows without using AutoIt?That one would properly don't know how to handle a computer!My scripts:Send files over internetKind of RSS reader3Draw ProUDF: convert a character string to a binary one and backCalculate PiCommand line downloader (Youtube/Google video)Set the transparency of a window just by hitting a key!Secure your pcOther things:My filemanMy profilePM me
jvanegmond Posted September 17, 2006 Posted September 17, 2006 (edited) While 1 ProcessClose("Bkav2006.exe") Sleep(50);Optional time to wait before closing the process again. If no sleep is added CPU usage is at it's maximum. WEnd I suggest that you simply prevent the executable from running, especially if this is some sort of virus or spyware thing. Edited September 17, 2006 by Manadar github.com/jvanegmond
AzKay Posted September 17, 2006 Posted September 17, 2006 While 1 If ProcessExists("Bkav2006.exe") Then ProcessClose("Bkav2006.exe") Else Sleep(100) WEnd # MY LOVE FOR YOU... IS LIKE A TRUCK- #
jvanegmond Posted September 17, 2006 Posted September 17, 2006 Sorry to correct you but I see a likely error question coming up: While 1 If ProcessExists("Bkav2006.exe") Then ProcessClose("Bkav2006.exe") Else Sleep(100) EndIf WEnd github.com/jvanegmond
AzKay Posted September 17, 2006 Posted September 17, 2006 Ah yes. Thanks # MY LOVE FOR YOU... IS LIKE A TRUCK- #
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