This is a code for closing of running .exe file.
This is a code for closing of running .exe file.
Rate This is a code for closing of running .exe file.
(1(1 Vote))
'let it will be calc.exe, and the path is c:\windows\system32\calc.exe
'We are going to put this code on a command botton click event name Cmd1_Click
Dim r As Double
Private Cmd1_Click()
r = shell ("c:\windows\system32\calc.exe")
End Sub
'Now we are going to stop the excuted .exe file.
'For that we are going to put this code on a command botton click event
'name Cmd2_Click
Private Cmd2_Click()
AppActivate r 'For activated application (in any State)
SendKeys "%{F4}", true
End Sub
This is a code for closing of running .exe file. Comments
No comments yet — be the first to post one!
Post a Comment