Advertisement
westor

$exe identifier for Mr_Me

Jan 15th, 2015
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.47 KB | None | 0 0
  1. alias exe {
  2.   if (!$1-) { return }
  3.   .comopen a wbemScripting.swbemLocator
  4.   .comclose a $com(a,connectserver,3,bstr,.,bstr,root\cimv2,dispatch* b)
  5.   .comclose b $com(b,execquery,3,bstr,SELECT * FROM Win32_Process WHERE Name = $qt($1),dispatch* c)
  6.   noop $regsubex($str(.,$iif(!$2,$comval(c,0),$2)),/(.)/g,$comval(c,\n,$iif($prop == kill,terminate)))
  7.   .comclose c
  8.   var %st = $regml(0)
  9.   if (%st) { return $true }
  10.   elseif (!%st) { return $false }
  11.   ;return $regml(0)
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement