I think the problem might be that your %HOMEPATH% contains a space on your server, and it doesn't on your other computer. Try putting quotes around the paths with %HOMEPATH%
Code:
del /F /S /Q "%HOMEPATH%\jagex*.*"
del /F /S /Q "%HOMEPATH%\random.dat"
...
xcopy JAGEXCACHE "%HOMEPATH%" /e /i /h /y
Same thing with %APPDATA%