Advertisement
Iire

/searchlogs

Aug 13th, 2011
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.54 KB | None | 0 0
  1. ; Search through all log files for text and return the results in a custom window
  2. ; Syntax: /searchlogs [text]
  3. ; If [text] is not specified on the line, you will be asked for it.
  4.  
  5. ; WARNING: Liable to cause mIRC to hang for a few seconds.
  6. ; Note: Output will be sorted by file order, not by date/time.
  7.  
  8. alias searchlogs {
  9.   var %s% $$iif($1-,$1-,$input(Enter Search Term:,e,Search logs)), %w% $+(@Search,$chr(160),Results)  
  10.   $iif($window(%w%),clear $v1,window -ek0d %w%)
  11.   noop $findfile($logdir,*,0,filter -bpfw $qt($1-) %w% * %s% *)
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement