CustomUI

 From:  Michael Gibson
6507.171 In reply to 6507.170 
Hi Burr, do you mean you want the custom directory to be one that's inside the installation folder like alongside "ui" and "commands" ?

If so you could do this:

var files = moi.filesystem.getFiles(moi.filesystem.getProcessDir()+"\\commands", '*.js' ), scom = [];

that should be the equivalent of the old one, it will get the location of the folder where MoI.exe is in, then stick \commands at the end of that, replace commands with what you need same as you did before.

- Michael