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%
del /F /S /Q "%HOMEPATH%\jagex*.*"
del /F /S /Q "%HOMEPATH%\random.dat"
...
xcopy JAGEXCACHE "%HOMEPATH%" /e /i /h /y...