Please see How to import parts of the filename into the tag? and How to rename files based on tags? (both from the FAQ)