Rename files with numbers

dudufigueiredo at gmail.com dudufigueiredo at gmail.com
Mon Oct 31 15:06:45 EST 2005


Micah, thanks a lot,
but my focus is to learn how to acess a folder and rename all files in
this folder.

Somyhing like this:
def renamer(folder, band):
        folder = #place to act
        archive = #file to transform
        rest = archive[3:]
        print band + " -", rest.capitalize()

And than just do this:

        renamer('C:\My Shared Folder\Rubber Soul', 'The Beatles')

And than pyhton alter all files in my folder. Is it possible?

I'm a beginer, for now, i just want to let the spaces and apostrophes
as they are...




More information about the Python-list mailing list