Help: Mass re-naming

OT: anything goes!

Moderator: Edi

Post Reply
User avatar
Yogi
Jedi Council Member
Posts: 2163
Joined: 2002-08-22 03:53pm
Location: Los Angeles
Contact:

Help: Mass re-naming

Post by Yogi »

I have a LARGE amont of files which all have the wrond extrntion (jpg instead of gif). Is there any way that I can re-name them to the correct extention without going to each individual one? I'm running Windows 2000.
User avatar
Enlightenment
Moderator Emeritus
Posts: 2404
Joined: 2002-07-04 07:38pm
Location: Annoying nationalist twits since 1990

Post by Enlightenment »

<sigh> the kids of today.... :)

Use the console.

Start->run->"CMD"

type CD at the prompt followed by a space, a backslash and the full path to the directory that contains the files you need to rename. If the path has spaces put the whole thing (including the backslash but not the space after CD) in double quotes.

now type ren *.jpg *.gif

All .jpg files in the directory will be renamed to .gif.

type 'exit' to close the console window.
It's not my place in life to make people happy. Don't talk to me unless you're prepared to watch me slaughter cows you hold sacred. Don't talk to me unless you're prepared to have your basic assumptions challenged. If you want bunnies in light, talk to someone else.
User avatar
Einhander Sn0m4n
Insane Railgunner
Posts: 18630
Joined: 2002-10-01 05:51am
Location: Louisiana... or Dagobah. You know, where Yoda lives.

Post by Einhander Sn0m4n »

Irfanview can get it done pretty quick. Just click on one of the files in question, and IV will pop a dialog saying "<File>.jpg is a .GIF file with incorrect extension! Rename?" Hit the Yes button, then use the mouse scroll to go to the next file. Lather, Rinse, Repeat.
Image Image
User avatar
Darth Wong
Sith Lord
Sith Lord
Posts: 70028
Joined: 2002-07-03 12:25am
Location: Toronto, Canada
Contact:

Re: Help: Mass re-naming

Post by Darth Wong »

Yogi wrote:I have a LARGE amont of files which all have the wrond extrntion (jpg instead of gif). Is there any way that I can re-name them to the correct extention without going to each individual one? I'm running Windows 2000.
Do they have the wrong extension, or are they actually the wrong filetype? If you're trying to convert them all from JPEG to GIF, simply changing the extensions won't work.
Image
"It's not evil for God to do it. Or for someone to do it at God's command."- Jonathan Boyd on baby-killing

"you guys are fascinated with the use of those "rules of logic" to the extent that you don't really want to discussus anything."- GC

"I do not believe Russian Roulette is a stupid act" - Embracer of Darkness

"Viagra commercials appear to save lives" - tharkûn on US health care.

http://www.stardestroyer.net/Mike/RantMode/Blurbs.html
User avatar
Einhander Sn0m4n
Insane Railgunner
Posts: 18630
Joined: 2002-10-01 05:51am
Location: Louisiana... or Dagobah. You know, where Yoda lives.

Re: Help: Mass re-naming

Post by Einhander Sn0m4n »

Darth Wong wrote:
Yogi wrote:I have a LARGE amont of files which all have the wrond extrntion (jpg instead of gif). Is there any way that I can re-name them to the correct extention without going to each individual one? I'm running Windows 2000.
Do they have the wrong extension, or are they actually the wrong filetype? If you're trying to convert them all from JPEG to GIF, simply changing the extensions won't work.
I think they're probly the wrong extension. M$Paint can be used to change the filetype; just open and save as whatever extension you want. Bad News. You have to do it one at a time. Bad News 2: MSPaint has a shitty JPEG/GIF Compressor.
Image Image
User avatar
Yogi
Jedi Council Member
Posts: 2163
Joined: 2002-08-22 03:53pm
Location: Los Angeles
Contact:

Re: Help: Mass re-naming

Post by Yogi »

Darth Wong wrote:Do they have the wrong extension, or are they actually the wrong filetype? If you're trying to convert them all from JPEG to GIF, simply changing the extensions won't work.
Wrong extention. No idea WHY they would be named with the wrong extention. Such are the hazards of downloading stuff over the internet.

BTW, the command line works fine. Thanks.
User avatar
Einhander Sn0m4n
Insane Railgunner
Posts: 18630
Joined: 2002-10-01 05:51am
Location: Louisiana... or Dagobah. You know, where Yoda lives.

Re: Help: Mass re-naming

Post by Einhander Sn0m4n »

Yogi wrote:
Darth Wong wrote:Do they have the wrong extension, or are they actually the wrong filetype? If you're trying to convert them all from JPEG to GIF, simply changing the extensions won't work.
Wrong extention. No idea WHY they would be named with the wrong extention. Such are the hazards of downloading stuff over the internet.

BTW, the command line works fine. Thanks.
Hmm Downloading Porn Pics from Kazaaa again? W00000000000000000T!!!
Image Image
User avatar
Exonerate
Sith Marauder
Posts: 4454
Joined: 2002-10-29 07:19pm
Location: DC Metro Area

Post by Exonerate »

:lol: You could try writing a batch file, though Enlightment's idea is probably the best.

BoTM, MM, HAB, JL
User avatar
Yogi
Jedi Council Member
Posts: 2163
Joined: 2002-08-22 03:53pm
Location: Los Angeles
Contact:

Re: Help: Mass re-naming

Post by Yogi »

Einhander Sn0m4n wrote:Hmm Downloading Porn Pics from Kazaaa again? W00000000000000000T!!!
Nope.
Downloaded all of the Ranma 1/2 manga off of IRC. (That's a LOT of files to re-name!)
Post Reply