Jump to content

File Rename


Recommended Posts

I'm trying to rename some MP3s (thousands). Some of the filenames are in CAPS and some are in lower case. I would like to make them all the same.

For Example:

LIGHT MY FIRE.mp3

and

with or without you.mp3

should be:

Light My Fire.mp3

With Or Without You.mp3

anyone know a way?

J

Link to comment
Share on other sites

FIleFindFirst, FileFindNext, StringLower should get you going. They are all in the help file :D (at least in the beta)

Link to comment
Share on other sites

#include <string.au3>

$search = FileFindFirstFile("*.mp3") 

While 1
    $file = FileFindNextFile($search) 
    If @error Then ExitLoop
     FileMove ( Filegetlongname($file) , "C:\" &  _StringProper( $file ) , 1)
WEnd

FileClose($search)

:D here it is

I dunno if this works cuz i can't test it...

Edited by Daniel W.

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...