Rename only extension

A swapping-ground for Regular Expression syntax

Rename only extension

Postby mslaga » Sat Sep 30, 2017 9:05 pm

I'm looking to rename extensions on files only, keep the name.

I tried searching here but didn't find anyone renaming extensions.

Trying to rename *.txt to *.ps1.

Any help appreciated!
Thanks!
Matt
mslaga
 
Posts: 2
Joined: Sat Sep 30, 2017 9:03 pm

Re: Rename only extension

Postby KenP » Sat Sep 30, 2017 10:00 pm

You don't need regular expressions for this :wink:

On the menu bar go to Renaming Options / Ignore / File Extensions (make sure this is checked).

Replace (3)
Replace: .txt
With: .ps1
KenP
 
Posts: 196
Joined: Sat Jul 30, 2016 11:25 am

Re: Rename only extension

Postby mslaga » Mon Oct 02, 2017 4:36 pm

That worked like a champ!

If it possible to select a directory and have it rename all files in sub directories under it?
mslaga
 
Posts: 2
Joined: Sat Sep 30, 2017 9:03 pm

Re: Rename only extension

Postby KenP » Mon Oct 02, 2017 8:13 pm

mslaga wrote:That worked like a champ!

If it possible to select a directory and have it rename all files in sub directories under it?

To show all the files in sub-folders:

Filters (12)
Subfolders: checked

If you don't want to see the folders as well as the files deselect Folders.
KenP
 
Posts: 196
Joined: Sat Jul 30, 2016 11:25 am


Return to Regular Expressions