Tagging after directory

Hi !
I've got a little problem with tagging, and i'm completely new to MP3TAG.
My problem is that I renamed all the folders of my music collection as "artist - album". So I would be very happy if there was a syntax to tag automatically the files after the directory name, only the artist and album tags obviously.
Any help would be welcome,
thanks in advance.

PS : Sorry if there are mistakes, i'm french.

see the FAQs

OK, I actually had just a backlash missing. Thanks for the help !