Sign in to follow this  
Followers 0
parkball2

File Rename

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

#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]

Share this post


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
Sign in to follow this  
Followers 0