Command Line

 

Command line switches allow you to change the behaviour of mIRC when it is first run. The switches can be used by creating a Windows Shortcut to the mIRC executable and appending the switches to the target filename, eg.:

 

"C:\Program Files\mIRC\mirc.exe" -sUndernet

 

mIRC supports the following command line switches:

 

-s<server:port>

Makes mIRC connect to the specified server and port on startup.

 

-j<#chan1,...,#chanN>

Makes mIRC join the specified channels on connect.

 

-p<password>

Specifies the password required to join the channel.

 

-n<nick1,nick2>

Sets your main and alternate nicknames.

 

-i<filename.ini>

Makes mIRC use the specified file in place of mirc.ini.

 

-r<path>

Sets the data path where mIRC saves mirc.ini as well as other files and data. If -r is specified without a path, the path is set to that of the mIRC executable.

 

-noreg

Makes mIRC avoid use of the registry. This includes not adding irc:// and ircs:// link support.

 

-noconnect

Prevents mIRC from connecting to a server on startup if that option is enabled in the mIRC options dialog.

 

-portable

This is a combination of the -r and -noreg switches.