From WikiChip
Difference between revisions of "mirc/commands/run"
< mirc‎ | commands

m (bot: correcting title)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{mirc title|/run Command}}{{mIRC menu}}
+
{{mirc title|/run Command}}
 
The '''/run command''' executes the given file or object using the application associated with its file extension. It can also be used to open directories. The file parameter can be enclosed by a pair of double quotes to separate it from the argument list.
 
The '''/run command''' executes the given file or object using the application associated with its file extension. It can also be used to open directories. The file parameter can be enclosed by a pair of double quotes to separate it from the argument list.
  
 
== Synopsis ==
 
== Synopsis ==
  /run -pnh <file/dir/obj> [arguments]
+
  /run -pnhau <file/dir/obj> [arguments]
  
 
== Switches ==
 
== Switches ==
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, 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
  
 +
'''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
Line 24: Line 29:
 
== Compatibility ==
 
== Compatibility ==
 
{{mIRC compatibility|2.1a}}
 
{{mIRC compatibility|2.1a}}
 
 
== See also ==
 
== See also ==
* [[List of commands - mIRC|List of commands]]
+
* {{mIRC|$isadmin}}
* [[List of identifiers - mIRC|List of identifiers]]
 
 
* {{mIRC|$url}}
 
* {{mIRC|$url}}
 
* {{mIRC|$file}}
 
* {{mIRC|$file}}
Line 37: Line 40:
 
* {{mIRC|$exists}}
 
* {{mIRC|$exists}}
 
* {{mIRC|/url}}
 
* {{mIRC|/url}}
{{mIRC command list}}
 
 
[[Category:mIRC commands|run command - mIRC]]
 

Latest revision as of 09:49, 11 April 2023

The /run command executes the given file or object using the application associated with its file extension. It can also be used to open directories. The file parameter can be enclosed by a pair of double quotes to separate it from the argument list.

Synopsis[edit]

/run -pnhau <file/dir/obj> [arguments]

Switches[edit]

  • -h - hide the application in context
  • -p - changes the working path to the path of the application in context
  • -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.
  • -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, 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[edit]

  • <file/dir/obj> - the object/file to execute
  • [arguments] - arguments list passed to the program

Example[edit]

alias example {
  ; open our site
  run www.zigwap.com/mirc
  ; open notepad, minimized
  run -n notepad.exe
}

Compatibility[edit]

Added: mIRC v2.1a
Added on: 28 Feb 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.

See also[edit]