Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords:
Here is a UDF that should help...
#DefineFunction GetProcessID_UDF(proclist, procname) ptr=StrIndexNC(proclist,procname,0,@fwdscan) if ptr==0 Message(procname,"Not found") exit endif ptr=StrIndex(proclist,"|",ptr,@fwdscan) ptr2=StrIndex(proclist,@tab,ptr,@fwdscan) pid=Strsub(proclist,ptr+1,ptr2-ptr-1)+0 Return pid #EndFunction ;Addextender("wproc34i.dll") Addextender("wwprc44i.dll") Processlist=tListProc() processname="notepad" procid = GetProcessID_UDF(processlist, processname) Message(processname,procid)
Article ID: W15077
File Created: 2013:04:01:09:07:46
Last Updated: 2013:04:01:09:07:46