Advertisement
Guest User

Untitled

a guest
May 3rd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.41 KB | None | 0 0
  1. alias print_file {
  2.   set -l %cmd notepad /PT $qt($1) $qt($2)
  3.   set -l %id $ticks $+ $rand(1111,9999)
  4.   set -l %r $false
  5.   if ($com(pid_shell $+ %id)) .comclose pid_shell $+ %id
  6.   .comopen pid_shell $+ %id WScript.Shell
  7.   if ($comerr) goto end2
  8.   if (!$com(pid_shell $+ %id,Run,1,bstr,%cmd,int,0,bool,false)) goto end2
  9.   %r = $true
  10.   :end2
  11.   if ($com(pid_shell $+ %id)) .comclose pid_shell $+ %id
  12.   return %r
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement