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 9: | Line 9: | ||
* '''-p''' - changes the working path to the path of the application in context | * '''-p''' - changes the working path to the path of the application in context | ||
* '''-n''' - minimize the window upon opening | * '''-n''' - minimize the window upon opening | ||
− | * '''-a''' - run as administrator | + | * '''-a''' - run as administrator. |
− | * '''-u''' - | + | * '''-u''' - run as administrator but does not give a prompt given that mirc is running as admin. |
− | |||
− | |||
− | |||
== 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 { |