From WikiChip
Editing mirc/commands/run

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 10: Line 10:
 
* '''-n''' - minimize the window upon opening
 
* '''-n''' - minimize the window upon opening
 
* '''-a''' - run as administrator, prompting you if mIRC is not running as admin, if mIRC is already running as admin, no prompt.
 
* '''-a''' - run as administrator, prompting you if mIRC is not running as admin, if mIRC is already running as admin, no prompt.
* '''-u''' - if mIRC is running as admin, runs the program without admin right
+
* '''-u''' - If mIRC is running as admin, runs the program without admin right
 +
 
 +
'''Note''': if mIRC is already running as admin and if you're not using -a nor -u, the program will still be running as admin as though you used -a.
  
'''Note''':
 
* If mIRC is already running as admin and if you're not using -a nor -u, the program will still be running as admin as though you used -a, by default.
 
* In Win7-32 OS, using the -a switch fails if launching a 16-bit DOS executible, regardless of if mIRC is already running in elevated state or not. Workaround is to not use -a if mIRC is already running as admin, but to use -a if it is not.
 
 
== Parameters ==
 
== Parameters ==
 
* '''<file/dir/obj>''' - the object/file to execute
 
* '''<file/dir/obj>''' - the object/file to execute
 
* '''[arguments]''' - arguments list passed to the program
 
* '''[arguments]''' - arguments list passed to the program
 
+
== Notes ==
 +
* If $isadmin indiates mIRC itself is running in an elevated 'run as administrator' state, using /run launches that program in elevated state, even if not using the -a switch.
 +
* Using the -a switch causes the UAC prompt to appear only if $isadmin is $false indicating that mIRC is not running in an elevated state.
 +
* In Win7-32 OS, using the -a switch fails if launching a 16-bit DOS executible, even if mIRC is already running in elevated state. Workaround is to use $isadmin to verify whether the -a switch is needed.
 
== Example ==
 
== Example ==
 
<syntaxhighlight lang="mIRC">alias example {
 
<syntaxhighlight lang="mIRC">alias example {

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)