Hello. I am new to VBScripting (for the most part) and very new to VBScripting within MUSHClient. What I want to do is run an executable whenever a trigger goes off. I want the %1 of the trigger to be sent to the executable as an argument. So when the trigger fires, I want it to run program.exe <the contents of %1>. I notice you can run sounds, but that doesn't appear to work with exe's. Can anyone help? Thanks in advance, hehe.
Running A File
Posted by Ioolo on Fri 03 May 2002 05:47 AM — 2 posts, 14,005 views.
If the file has a COM interface you can do it with COM. See the post Can I access SQL database in Mushclient with jscript? for an example (in Jscript, but it is similar in VBscript).
I think the implementors of VBscript left out the ability to execute arbitrary programs, for security reasons. :)