Author Topic: Is it possible to rename a file, only when it's wrong?  (Read 14114 times)

Robbert

  • Newbie
  • *
  • Posts: 2
Is it possible to rename a file, only when it's wrong?
« on: October 28, 2006, 05:10:30 pm »


Is it possible to rename a file, only when it's wrong?
Using a switch or something, so I can run TrID on all my (downloaded)files.

Robbert

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 1664
    • Mark0's Home Page
Re: Is it possible to rename a file, only when it's wrong?
« Reply #1 on: October 28, 2006, 05:15:24 pm »
You can use the switch -ae. Yes, it doesn't change the extensions; it will add the guessed extension. The meaning was that this way you don't loose any info about the original file name.
The worse that can happen, is that you'll end up with a duplicated extensions, like mypicture.jpg.jpg.

Probably in a next version I will also add a switch to only change the extension if it it's wrong.

Bye!

Robbert

  • Newbie
  • *
  • Posts: 2
Re: Is it possible to rename a file, only when it's wrong?
« Reply #2 on: October 28, 2006, 05:28:26 pm »
Thank you, for your fast reply.

Quote
You can use the switch -ae. Yes, it doesn't change the extensions; it will add the guessed extension. The meaning was that this way you don't loose any info about the original file name.
I like this. Keeping the old extension too.

The only thing I want to avoid is this:
Quote
The worse that can happen, is that you'll end up with a duplicated extensions, like mypicture.jpg.jpg.

So I'll be waiting for the next version.

Robbert

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 1664
    • Mark0's Home Page
Re: Is it possible to rename a file, only when it's wrong?
« Reply #3 on: October 29, 2006, 02:30:24 am »
Note: the other messages about the ISO images have been moved in a new topic, here.

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 1664
    • Mark0's Home Page
Re: Is it possible to rename a file, only when it's wrong?
« Reply #4 on: October 29, 2006, 02:35:50 am »

The only thing I want to avoid is this:
One thing you could do in the mean time, is to remove the extensions from the files, so that TrID will then in fact add the correct ones (equal to changing just the wrong ones). From a command prompt it just take a rename, like:

Code: [Select]
c:\temp> ren *.* *
Bye!