closing an exe through vb?

dynamic_sysop

Well-known member
Joined
Oct 1, 2002
Messages
1,039
Location
Ashby, Leicestershire.
hi can someone tell me if its possible to close a seperate exe which is running through vb ( vb6 or .net ) for example say i have an exe called test.exe running open on the desktop, i wish to run form1 and click button1 on form1 to close test.exe:-\ any help greatly appreciated ty.
 
System.Diagnostics.Process.GetProcesses() (returns an array of Process objects)
Process.CloseMainWindow() or Process.Kill()
 


Write your reply...
Back
Top