Try this: Exec("killall program_name") 2012/3/1 abbat <abbat...@mail.ru>
> > It works only if I use Button1 (If we execute an app ourselves). > But how to kill process if we know only Name? > Thanks > > > Vuott wrote: > > > > ' Gambas class file > > > > Private hpro As Process > > > > > > Public Sub Button1_Click() > > > > ' An application start, i.e. “ Gedit “ > > hpro = Exec ["gedit"] As "hpro" > > > > End > > > > > > Public Sub button2_Click() > > > > ' it closes application process > > hpro.kill > > > > End > > > > > > ' this event is raised, when process is closed: > > Public Sub hpro_Kill() > > > > Print "Process closed !" > > > > End > > > > > > > ------------------------------------------------------------------------------ > > Virtualization & Cloud Management Using Capacity Planning > > Cloud computing makes use of virtualization - but cloud computing > > also focuses on allowing computing to be delivered as a service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://old.nabble.com/Process-in-TableVew-and-to-Kill-a-Process-tp33417515p33417896.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user