Stephen,
You appear to be patching against a very old version of catalina.bat. Please
take a look at the most recent version that has "setlocal" in it.
Also, I noticed that you are eliminating the check for the NT when setting the
_STARTJAVA environment variable. This is necessary as Windwos 95,
--- catalina.orig.bat Fri Feb 1 13:39:47 2002
+++ catalina.batFri Feb 1 13:47:34 2002
@@ -26,11 +26,12 @@
rem - Save Environment Variables That May Change
--
-set _CATALINA_BASE=%CATALINA_BASE%
-set _CATALINA_HOME=%CATALINA_HOME%
-set _CLASSPATH=%CLASSP