Two things come to mind.
1: Why do you need a script to enable remote desktop? Just turn it on within Windows so you don't have to worry about potential problems that can arise from messing around with the registry without knowing what you're doing. I'm also going to guess you left out that it's XP Home you're dealing with, in which case, this little registry hack would be in violation of the EULA. If you want remote desktop, you pay for XP Pro or you get some free third party program like VNC.
2: The solution to your problem is extremely simple, but I'd place the odds at far greater than 50/50 that you're trying to circumvent XP Home limitations, which would be against the rules here. So the only hint I'll give you is: Look at the filename you gave this BATCH script, and the file name the BATCH script is trying to create. If that's not enough of a hint for you, go download VNC or some other freeware remote desktop like app.
I am using a registry script to enable remote desktop connection in windows xp service pack 2, but when i run this file (ts_on.reg) it brings an error. (i just copy this script from some website and paste in a file and save it as ts_on.reg)
Scirpt is:
---------------------------------------------------------------
echo Windows Registry Editor Version 5.00 >> ts_on.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server] >> ts_on.reg
echo "TSEnabled"=dword:00000001 >> ts_on.reg
echo "TSUserEnabled"=dword:00000001 >> ts_on.reg
echo "fAllowToGetHelp"=dword:00000001 >> ts_on.reg
echo "fDenyTSConnections"=dword:00000000 >> ts_on.reg
regedit.exe /s "ts_on.reg"
del /f ts_on.reg
----------------------------------------------------------------
Error is:
----------------------------------------------------------------
cannot import c:\ts_on.reg: The specified file is not a registry script. You can only import binary registry files from within the registry editor.
----------------------------------------------------------------
Help me, i need ur assistance and Thanks in advance.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic