Well. when i tried the code given by me it worked,

You do realise that you should copy the given code to wordpad (start->run->wordpad), and there paste, and copy all again, and put that in remote?