I rarely got "1 -- 1 -- 0" but it happened.
I never tried exiting mIRC, the crash always occured before I could have a chance to (but I wouldn't have tried anyway, to be honnest).
If you use /comopen and then immediately /comclose and exit, do you see the same issue?
I don't know if you meant using /exit or not but using this code:
alias comtest {
.comopen a MSScriptControl.ScriptControl
.comclose a
exit -nr
if (!$comerr) {
var %vb set s = createobject("Shell.Application") $lf set f = s.namespace( $qt($1) ).items $lf s.namespace( $qt($2) ).copyhere(f) $lf set f = nothing
if ($com(a,Language,4,bstr,VBScript)) && (!$comerr) {
echo -a $v1 -- $com(a,ExecuteStatement,1,bstr,%vb) -- $comerr
.comclose a
}
}
}First, I didn't know /exit wasn't halting the current script, is this intended? Anyway, that code works fine, the first $com call produce an error since com 'a' doesn't exist (has been closed) and mIRC exits (and restarts).
How about if you /comclose and exit immediately after the first $com()
Now using this code:
alias comtest {
.comopen a MSScriptControl.ScriptControl
if (!$comerr) {
var %vb set s = createobject("Shell.Application") $lf set f = s.namespace( $qt($1) ).items $lf s.namespace( $qt($2) ).copyhere(f) $lf set f = nothing
if ($com(a,Language,4,bstr,VBScript)) && (!$comerr) {
.comclose a
exit -nr
echo -a $v1 -- $com(a,ExecuteStatement,1,bstr,%vb) -- $comerr
}
}
}Also works as expected, an error on the second $com call and mirc restarts.
I use winrar as a file archiver