Tapatalk

Copying just Filename, not path. Is it possible?

Copying just Filename, not path. Is it possible?

6
NewbieNewbie
6

    Feb 17, 2010#1

    Hi to all.
    Is there a way to "copy" only the name of an open file?
    It seems the only copy I could do is the whole "path/filename"...

    Thanks

    6,685587
    Grand MasterGrand Master
    6,685587

      Feb 17, 2010#2

      There is no other built-in command for copying a file name. You can setup a template which inserts the file name customized into your active file on execution. But if you really want to copy just the name of a file into active clipboard, use a script added to Scripting - Script List with a hotkey for fast execution. The script is very simple, only 1 line.

      UltraEdit.clipboardContent = GetNameOfFile();

      Of course the script is not only 1 line. You have to download FileNameFunctions.js and copy the code of function GetNameOfFile into your script.
      Best regards from an UC/UE/UES for Windows user from Austria

      6
      NewbieNewbie
      6

        Feb 17, 2010#3

        Thanks!!
        Sergio
        Italy