In the Edit menu click on Copy File Path/Name. Paste it where you want with Ctrl+V and remove the path.
Second method is to create a template named "File name" with the template definition [FILE_NAME] oder [FULL_FILE_NAME] and assign a hotkey to this template. See help of UltraEdit about Templates.
Best regards from an UC/UE/UES for Windows user from Austria
Mofi wrote:In the Edit menu click on Copy File Path/Name. Paste it where you want with Ctrl+V and remove the path.
How can you remove the path with a macro? Or may be it exist a copy file name without path and extension ?
Of course the path i want to remove is not the same for all files !
Can you help me ? My knowledge in UE macro language is as week as my english... i think i can understand but write it
If you only need the filename without extension, do not use the CopyFilePath command. Use instead a template.
Open Advanced - Display/Modify Templates.
At the dropdown list at the bottom of the dialog select a not used template number. 0- is default, if you don't have any templates. Enter a template name at top of the dialog, for example "Insert filename". And in the big edit area enter only [FILE_NAME].
You can now use the template manually via the menu, the template list, the toolbar or a hotkey or use it in a macro with the command Template 0. 0 is just an example for the template number. If "Insert filename" is assigned to template 6, use Template 6.
Best regards from an UC/UE/UES for Windows user from Austria