Page 1 of 1

File Renamimg

Posted: 28 Apr 2017 13:15
by Nkem
How can I remove the extension like .pdf (or .txt, .doc, etc) from appearing as part of my filename when right-click on file and select Rename.

Re: File Renamimg

Posted: 28 Apr 2017 13:27
by highend
Welcome to the forum.

Even if Menu - Tools - Customize List - Hide Extensions is activated, XY will show the extension when you rename a file (a security "feature").

But if Configuration | Sort and Rename | Rename | Exclude extension on rename is active, the extension isn't part of what is selected
by default when you rename it. But "hiding" would only possible with a script and the pro version of XY (and you'd need to activate
it via a toolbar button or a keyboard shortcut)...

Code: Select all

    $newName = input("Rename item...", , gpc(<curitem>, "base"));
    if ($newName) { renameitem($newName); }

Re: File Renamimg

Posted: 28 Apr 2017 13:47
by admin
Tick this:
Configuration | Sort and Rename | Rename | Exclude extension on rename

Re: File Renamimg

Posted: 28 Apr 2017 13:51
by Nkem
I use a pro version. Please kindly show me how to run the script. Thanks

Re: File Renamimg

Posted: 28 Apr 2017 13:55
by Nkem
Thanks admin. But I have already ticked that. Unfortunately that did not solve the problem. The extension still appears when i press F2 or click Rename to rename a file

Re: File Renamimg

Posted: 28 Apr 2017 13:56
by admin
Yes, but it is not pre-selected. What exactly is your problem?

Re: File Renamimg

Posted: 28 Apr 2017 13:58
by highend
Script is in my first post

Re: File Renamimg

Posted: 28 Apr 2017 14:07
by Nkem
Thanks highend. Just don't know how to run to script. Kindly show me. Thanks

Re: File Renamimg

Posted: 28 Apr 2017 14:10
by Nkem
Thanks admin. Here is exactly my problem. I don't want to see that .pdf when a press F2. period. Can you help please?

Re: File Renamimg

Posted: 28 Apr 2017 14:43
by admin
That's only possible with a script. See highend's reply.

See the help file for how to run a script, please.

Come back in case there are still questions. Always happy to help.