Jump to content

how do I rename several files at once, but after the "." ?

Mark Kaine

so I have a couple of hundred files all ending in ".bin" which Windows cannot open whatsoever (without a corresponding program) but when I rename those to ".png" it can suddenly read and open the files... (because they're actually images)

 

But the problem is it always just lets me rename one file at a time so it's very tedious and time consuming...

 

is there a command or trick for this task?

 

 

 

 

 

The direction tells you... the direction

-Scott Manley, 2021

 

Softwares used:

Corsair Link (Anime Edition) 

MSI Afterburner 

OpenRGB

Lively Wallpaper 

OBS Studio

Shutter Encoder

Avidemux

FSResizer

Audacity 

VLC

WMP

GIMP

HWiNFO64

Paint

3D Paint

GitHub Desktop 

Superposition 

Prime95

Aida64

GPUZ

CPUZ

Generic Logviewer

 

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

in command line "ren *.bin *.png" should work probably. But of course when all files are in the same dir. But have not used command line so long, not 100% sure.

I edit my posts more often than not

Link to comment
Share on other sites

Link to post
Share on other sites

I'd recommend bulk rename utility. You can do this in CMD and powershell as well, but I find it's a useful utility to have anyway.

 

https://www.bulkrenameutility.co.uk/

 

The below command would rename all .bin files to .png:

 

ren *.bin *.png

 

If you have multiple ones in subfolders, the below command will work in powershell. 

 

Get-ChildItem -Recurse *.bin | Rename-item -NewName {$_.Name -replace '.bin','.png'}
Link to comment
Share on other sites

Link to post
Share on other sites

Total Commander has a multi rename utility built in.

 

Select files you want to rename with right click of the mouse (short click) or by pressing Insert key (or press * to select all files in folder)

Then Files menu > Multi Rename Tool :

 

In the extension text box, replace [E] with the extension you want. 

 

Tip : it's also useful if you want counters in the name, or extension ... for example you can type File[C] instead of [N] and then you have File1 , File2 etc ... you can configure on the right side the counter, how many digits, how much to increment.

 

I found it very useful for example after scanning a book ... I scanned the odd pages first, then scanned the even pages in another folder.... so it was easy to set a counter to start from 1 and step by 2 for one folder, start from 2 and step by 2 on the other, then I could mix the two folders together and had all images in order.

 

image.png.192406f12c36e0b31ed3535b12555f1e.png

Link to comment
Share on other sites

Link to post
Share on other sites

42 minutes ago, Tan3l6 said:

in command line "ren *.bin *.png" should work probably. But of course when all files are in the same dir. But have not used command line so long, not 100% sure.

ok thanks, so if I only want to change the bin files in a certain folder I'd do this first?

 

change-directories-GIF.gif.cff7321b4c5b8e1e37c216e260cc7319.gif

 

because it wouldn't make sense to rename all .bin files on the computer obviously as games for example use this file extension frequently .

 

 

The direction tells you... the direction

-Scott Manley, 2021

 

Softwares used:

Corsair Link (Anime Edition) 

MSI Afterburner 

OpenRGB

Lively Wallpaper 

OBS Studio

Shutter Encoder

Avidemux

FSResizer

Audacity 

VLC

WMP

GIMP

HWiNFO64

Paint

3D Paint

GitHub Desktop 

Superposition 

Prime95

Aida64

GPUZ

CPUZ

Generic Logviewer

 

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Yeah, first navigate to the folder and then the "ren *.bin *.png"  (without quotation marks ofc) = all .bin files will be named to .png in that folder.

But as seen there might be better bulk rename tools.

I edit my posts more often than not

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Tan3l6 said:

Yeah, first navigate to the folder and then the "ren *.bin *.png"  (without quotation marks ofc) = all .bin files will be named to .png in that folder.

But as seen there might be better bulk rename tools.

ya, alright thanks again, perfect. I'd prefer doing this with command prompt honestly, will try it on my laptop.

 

 

The direction tells you... the direction

-Scott Manley, 2021

 

Softwares used:

Corsair Link (Anime Edition) 

MSI Afterburner 

OpenRGB

Lively Wallpaper 

OBS Studio

Shutter Encoder

Avidemux

FSResizer

Audacity 

VLC

WMP

GIMP

HWiNFO64

Paint

3D Paint

GitHub Desktop 

Superposition 

Prime95

Aida64

GPUZ

CPUZ

Generic Logviewer

 

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

You could just associate the .bin extension with the image viewer in windows...

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×