C cfonseca Member Joined Jun 15, 2005 Messages 5 Programming Experience 3-5 Jun 17, 2005 #1 Kill Process As to kill a process that has duration of 60 seconds Thanks.
kulrom Well-known member Joined May 10, 2005 Messages 2,854 Location Republic of Macedonia Programming Experience 10+ Jun 17, 2005 #2 myProcess.kill() Cheers added: I guess you know but anyway ... first off, find out all current process: Dim myProcess As Process() = Process.GetProcesses() Next, loop through this array to locate the process u want. Now just kill it using kill method ... Cheers Upvote 0 Downvote
myProcess.kill() Cheers added: I guess you know but anyway ... first off, find out all current process: Dim myProcess As Process() = Process.GetProcesses() Next, loop through this array to locate the process u want. Now just kill it using kill method ... Cheers
C cfonseca Member Joined Jun 15, 2005 Messages 5 Programming Experience 3-5 Jun 17, 2005 #3 to kill the process after 30 seconds If MyProcess.TotalProcessorTime.Seconds >= 30 Then MyProcess.Kill() End If is correct ? Upvote 0 Downvote
to kill the process after 30 seconds If MyProcess.TotalProcessorTime.Seconds >= 30 Then MyProcess.Kill() End If is correct ?