I was able to do that using MP3Tag:
Mp3tag is a powerful and easy-to-use tool to edit metadata of audio files.
I clicked the "Change Directory" button to go to the directory containing the folders.
Then, I selected all of the files listed and clicked the "Tag - Tag" button.
For the field, I chose "TITLE"
and for the format string, I entered
%_directory%
I clicked the OK button, and it copied the folder name to the title field of the metadata.
I repeated the process for the field "COMMENT".
If you want to try this, copy a few folders to an empty directory and experiment on those to see if it works.