yeah you could proboly do something similar to this:
function updateMacros() {
var fso = new ActiveXObject("Scripting.FileSystemObject");
var path = "\\\\<server>\\XMetaL.mcr";
//if offline end
if(!fso.FolderExists(path)) {
return;
}
var wshell = new ActiveXObject("WScript.Shell");
var appData = wshell.ExpandEnvironmentStrings("%appdata%");
var dest = appData + "\\SoftQuad\\XMetaL\\6.0\\XMetaL.mcr"
fso.CopyFile( path, dest , true)
Application.RefreshMacros()
}