I would like to transfer music from one iTunes library to another but I tried to drag songs from local library to a shared library and it didn't work.

Is it possible to do this transfer using just iTunes, without having to manually copy files from one computer to another?