Just noticed I haven’t posted anything since November last year so here’s a quick and dirty way to dynamically include other jscript files in Windows. Include the following function at the top of your jscript file.
function uate(s){return WScript.CreateObject("Scripting.FileSystemObject").OpenTextFile(s).ReadAll();}
To inlcude jscript files call eval() along with uate().
eval(uate("someotherfile.js"));