mIRC Homepage

/run -a

Posted By: maroon

/run -a - 10/10/19 04:58 AM

Related to this, In 32bit Windows7, /run -a fails to launch 16bit DOS executibles.

/run c:\windows\system32\command.com /k
/run -a c:\windows\system32\command.com /k

If mIRC itself is running as admin, the target program runs in admin mode without the -a switch, as happens to all programs launched from a client itself running in admin mode.

workaround success:
/run -a cmd /c c:\windows\system32\command.com /k
Posted By: Khaled

Re: /run -a - 10/10/19 08:07 AM

Thanks for your bug report. This is a Windows API limitation. You would need to use the method you are using in your post to get around it.
Posted By: maroon

Re: /run -a - 15/10/19 09:42 PM

The new $isadmin works as expected in win7-32. Assuming that there's no effective difference between using /run's -a switch if mirc.exe itself is already running in elevated privileges, it might be reasonable to have everyone skip using the new API as superfluous.

One slight change might be to conform with other identifiers that return $true or $false, instead of the current 1 or 0. Unless there's the intent to switch over to this type of return value, like $compress does. I know there's no effective difference inside if() boolean logic.
© 2021 mIRC Discussion Forums