How to copy just path of active file to clipboard?

How to copy just path of active file to clipboard?

13
Basic UserBasic User
13

    Jul 18, 2016#1

    Hi to all.

    Is there a way to "copy" only the path of an open file?

    I use path command but whole "path/filename" is copied.

    And how to replace when I copy this path?

    Example: "/" replace using "\\".

    Thanks

    6,687586
    Grand MasterGrand Master
    6,687586

      Jul 19, 2016#2

      Yes, with a script containing function GetFilePath from General file name evaluating functions collection and having additionally the line

      Code: Select all

      UltraEdit.clipboardContent = GetFilePath();
      This line assigns the file path string of active file returned by the function to currently active clipboard. This single line requires UE ≥ v14.20 or UES ≥ v09.00.

      I don't understand your second question. But replaces of characters within a JavaScript string is supported by JavaScript core, see replace function of JavaScript's String object.
      Best regards from an UC/UE/UES for Windows user from Austria

      13
      Basic UserBasic User
      13

        Jul 21, 2016#3

        Thanks Mofi once again....