Using Backup/Restore Configuration to share configuration with own PC or others?

Looks like this:

function OnInit(initData) {
    initData.name = 'StartupAndShutdown';
    initData.default_enable = true;
    initData.min_version = '12.0';
}

function OnStartup(startupData) {
    var cmd = DOpus.Create().Command();
    var wne = new ActiveXObject('WScript.Network');

    var thisPC = wne.ComputerName;
    DOpus.Output('thisPC:                ' + thisPC);

    if (thisPC == 'A') {
        cmd.RunCommand('Favorites ALIAS=set       NAME=Books      PATH="X:\\Books"');
    } else if (thisPC == 'B') {
        cmd.RunCommand('Favorites ALIAS=set       NAME=Books      PATH="Y:\\Books"');
    } else if (thisPC == 'C') {
        // 
    } else if (thisPC == 'D') {
        // 
    } else {
        //
    }
}
1 Like