Go FolderContent

You will need a script command to access files selected in the file display.

Try CopyFoldercontent in a context menu like this:

Go PATH=/profile FOLDERCONTENT=embeddedcmddirs
[CopyFoldercontent]

Save CommandCopyFoldercontent.js.txt to   

%appdata%\GPSoftware\Directory Opus\Script AddIns

How to use buttons and scripts from this forum

JScript
function OnInit(initData) {
    initData.name = 'CopyFoldercontent';
    initData.version = '2024-07-10';
    initData.url = 'https://resource.dopus.com/t/go-foldercontent/51626';
    initData.desc = 'CopyFoldercontent';
    initData.default_enable = true;
    initData.min_version = '12.0';
}

function OnAddCommands(addCmdData) {
    var cmd = addCmdData.AddCommand();
    cmd.name = 'CopyFoldercontent';
    cmd.method = 'OnCopyFoldercontent';
    cmd.desc = 'CopyFoldercontent';
    cmd.label = 'CopyFoldercontent';
    cmd.hide = false;
    cmd.icon = 'script';
}

function OnCopyFoldercontent(scriptCmdData) {
    var cmd = scriptCmdData.func.command;
    var tab = scriptCmdData.func.sourcetab;
    var qlf = scriptCmdData.func.qualifiers;
    var fsu = DOpus.FSUtil();

    cmd.deselect = false;

    if (!cmd.files.count) return;

    var dstPath = fsu.Resolve(cmd.files(0));
    var dstType = fsu.GetType(dstPath);

    if (qlf == 'ctrl') {
        cmd.SetFiles(tab.selected);
        cmd.SetDest(dstPath);
        cmd.RunCommand('Copy');
    } else if (qlf == 'shift') {
        cmd.SetFiles(tab.selected);
        cmd.SetDest(dstPath);
        cmd.RunCommand('Copy MOVE');
    } else if (qlf == 'alt') {
        cmd.SetDest(tab.path);
        cmd.RunCommand('Copy');
    } else if (qlf == 'shift,alt') {
        cmd.SetDest(tab.path);
        cmd.RunCommand('Copy MOVE');
    } else {
        if (dstType == 'file') {
            cmd.RunCommand(dstPath);
        } else {
            cmd.RunCommand('Go PATH="' + dstPath + '"');
        }
    }
}
3 Likes