Shafi,
They have so completely reworked how metadata is done in ArcGIS 10 that the old code will not work at all even if you do get it pointed to the right data. I am really confused about metadata in 10 and am not sure I will be coming out with a solution to this for 10.