Run
This command allows you to run external applications.
run [-hnp] <filename> [parameters]
Switch | Explanation |
h | This will hide the application you run. |
n | This switch will minimize the application which is being ran. |
p | This sets the working path to the path of the application being run. |
Note
When you're in explorer and double click an executable file the working path is set to the same as the directory of the file you double clicked. This is perticually visible when using batch files, if your batch file did something like, DIR it would display which ever directorys content the .bat file was in. However in mIRC if you run c:\myfile.bat which contained just DIR, it would display the directory content of your mIRC's directory ($mircdir). If you want mIRC to handle working paths the same way explorer would make sure you give the -p switch.
If you give the filename as a none executible file mIRC will attempt to open the file within the program that is associated to the files extention.
Example
run versions.txt run c:\windows\notepad.exe versions.txt
The two examples above would run NotePad and open versions.txt from inside mIRC's directory into notepad.
run c:\windows\notepad.exe eventsystem.log ;The above would try and read the event system log from inside $mircdir run -p c:\windows\notepad.exe eventsystem.log ;The above would try and read the event system log from inside c:\windows\
Also See
- /XRun [1] A custom alias that uses COM Objects to run files. Extreamly useful if you want to run batch files and grab the results from the command window.