Is there a mirc equivalent to getting the system root directory?
Thanks
No, but you can get it using COM.
alias envar {
if ($com(a)) { .comclose a }
.comopen a WScript.Shell
if ($comerr) { return }
var %a = $com(a,ExpandEnvironmentStrings,3,bstr,$+(%,$1%))
%a = $com(a).result
.comclose a
return %a
}
//echo -a $envar(systemroot)
litlle type missing , =]
var %a = $com(a,ExpandEnvironmentStrings,3,bstr,$+(%,$1,%))
It'll still work fine without it. You can place text directly after $n in the same way that you can with $*dir identifiers.