mIRC Homepage
Posted By: Recce Opening local files or link via mIRC bot - 13/02/18 09:04 AM
Hello, I'm trying to add a script to my mIRC bot to open local files/folders. I'd also like to do this with sending a request to the browser to go to a webpage. Is there any way I can implement this?
I'm not sure what you mean by opening files/folders.

You can use /run to open files and folders, and also web sites:
Code:
/run $mircdir
/run notepad.exe
/run wordpad.exe readme.txt
/run https://www.mirc.com


From the documentation:

Quote:
/run [-hnp] <filename> [parameters]
Runs the specified program with parameters.

The -h switch attempts to hide the window of the application being run.

The -n switch minimizes the window of the application being run.

The -p switch sets the working path to the path of the application being run.

You can enclose the filename or parameters in quotes if you need to. If you specify a non-executable file, mIRC tries to open it with the application associated with that file.

© mIRC Discussion Forums