File Renamimg

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Nkem
Posts: 5
Joined: 28 Apr 2017 11:16

File Renamimg

Post 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.

highend
Posts: 9861
Joined: 06 Feb 2011 00:33

Re: File Renamimg

Post 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); }
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

admin
Site Admin
Posts: 50430
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: File Renamimg

Post by admin »

Tick this:
Configuration | Sort and Rename | Rename | Exclude extension on rename
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Or wear a mask! 😷

Nkem
Posts: 5
Joined: 28 Apr 2017 11:16

Re: File Renamimg

Post by Nkem »

I use a pro version. Please kindly show me how to run the script. Thanks

Nkem
Posts: 5
Joined: 28 Apr 2017 11:16

Re: File Renamimg

Post 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

admin
Site Admin
Posts: 50430
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: File Renamimg

Post by admin »

Yes, but it is not pre-selected. What exactly is your problem?
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Or wear a mask! 😷

highend
Posts: 9861
Joined: 06 Feb 2011 00:33

Re: File Renamimg

Post by highend »

Script is in my first post
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

Nkem
Posts: 5
Joined: 28 Apr 2017 11:16

Re: File Renamimg

Post by Nkem »

Thanks highend. Just don't know how to run to script. Kindly show me. Thanks

Nkem
Posts: 5
Joined: 28 Apr 2017 11:16

Re: File Renamimg

Post 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?

admin
Site Admin
Posts: 50430
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: File Renamimg

Post 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.
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Or wear a mask! 😷

Post Reply