Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias print_file {
- set -l %cmd notepad /PT $qt($1) $qt($2)
- set -l %id $ticks $+ $rand(1111,9999)
- set -l %r $false
- if ($com(pid_shell $+ %id)) .comclose pid_shell $+ %id
- .comopen pid_shell $+ %id WScript.Shell
- if ($comerr) goto end2
- if (!$com(pid_shell $+ %id,Run,1,bstr,%cmd,int,0,bool,false)) goto end2
- %r = $true
- :end2
- if ($com(pid_shell $+ %id)) .comclose pid_shell $+ %id
- return %r
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement