Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Help]Terminating a process in Visual Basic 2008.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
cildor666
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2008
Posts: 95

PostPosted: Tue Sep 23, 2008 2:54 pm    Post subject: [Help]Terminating a process in Visual Basic 2008. Reply with quote

I'm using an button on my form to open cmd, and have created a button that says 'Kill cmd' what code can i use to kill the process of cmd once i have clicked the button?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Sep 23, 2008 2:57 pm    Post subject: Reply with quote

Kill method of System.Diagnostics.Process class
Back to top
View user's profile Send private message
cildor666
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2008
Posts: 95

PostPosted: Tue Sep 23, 2008 2:59 pm    Post subject: Reply with quote

Yes, but what is the actual code that does all of that, i'm a newbie to Visual Basic 2008 and i don't know these basic things. Oh and i'm going to open cmd like 20 times so i need a code to kill 20 cmd's at once.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Sep 23, 2008 4:37 pm    Post subject: Reply with quote

Thankfully you haven't even made an effort to help yourself, but whatever.

Code:
Dim p As Process() = Process.GetProcessesByName("explorer")
        If (p.Length > 0) Then
            p(0).Kill()
        Else
            MsgBox("FUCK")
        End If
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites