How do I transfer shares from one demat account to another?

You can refer to this post: Account holders of Karvy