View Single Post
  #2  
Old 7th April 2017, 07:34
sachinbaan's Avatar
sachinbaan sachinbaan is offline
Senior Member
 
Join Date: Oct 2013
Posts: 166
sachinbaan is on a distinguished road
Baan: ERP LN - DB: MS SQL - OS: Microsoft Server
Hello,

You can make use of pstat().

for example,
Code:
 	procid = -1
 	procid = pstat( procid, progname, info )

 	while procid >= 0
 		procid = pstat( procid, progname, info )
 		if progname = "tdpur4100m900" then
 			kill(ids)
 		endif
 		ids = procid
 	endwhile
In above example, you can make use of predefined variable 'parent'. it will return id of your current session.
__________________
Regards,
Sachin

TO DREAM THE PERSON U WOULD LIKE 2 B, IS 2 WASTE THE PERSON U R.
Reply With Quote