mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2018
Posts: 3
R
Recce Offline OP
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Feb 2018
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?

Joined: Apr 2004
Posts: 73
Z
Babel fish
Offline
Babel fish
Z
Joined: Apr 2004
Posts: 73
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)

Link Copied to Clipboard