Using Folder Names In MP3 Tag Metadata Fields

Naki posted the code below. It takes all currently selected file names and writes it to Comment field. It seems to work just fine with folders as well.

@sync:dopusrt /acmd SetAttr {filepath} META comment:{file|noext}