Adapt 'copyMultilineStringToClipboard' to windows copyToClipboard call

Issue #38 new
Zack Lovatt created an issue
    function copyMultilineStringToClipboard (text) {
        var escapedText = text.split("\n").join("&echo.").split(")").join("^^^)")
        var cmdString = 'cmd.exe /c cmd.exe /c "(echo ' + escapedText + ') | clip"';

        return system.callSystem(cmdString);
    }

Comments (0)

  1. Log in to comment