mIRC Home    About    Download    Register    News    Help

Topic Options
#262527 - 13/02/18 09:04 AM Opening local files or link via mIRC bot
Recce Offline
Self-satisified door

Registered: 12/02/18
Posts: 3
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?

Top
#262615 - 01/03/18 05:45 PM Re: Opening local files or link via mIRC bot [Re: Recce]
Zelda4ever32 Offline
Babel fish

Registered: 27/04/04
Posts: 73
Loc: East Bay, California
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.

_________________________
/tokenize 32 $gettok($1-,1-,32)

Top