Run

From Scriptwiki
Revision as of 09:07, 2 July 2007 by Cail (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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\

See Also