Will that work with windows 95/98/ME? -- Glen Daniel Rosner <[EMAIL PROTECTED]> on 12/10/2000 07:59:12 AM Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc: (bcc: Glen Stampoultzis/ITD/MEL/Ansett/AU) Subject: getting rid of lcp.bat? cmd batch file fun... FWIW, I was looking at the lcp.bat file and was scratching my head- I found what it did really convenient but thought it odd that it required a separate file. Obviously, it seemed to me that what you would expect is that: for %%i in (.\lib\*.jar) do call .\lcp.bat %%i could be replaced by: for %%i in (.\lib\*.jar) do set LOCALCLASSPATH=%LOCALCLASSPATH%;%1 But of course, someone else would have thought of that, and I see that it doesn't work. Incidentally, if anyone knows WHY ON EARTH that is, feel free to let me know... I see the behavior, but can't figure out what is going on. Anyway, after poking at that, I figured out that the following does work: for %%i in (.\lib\*.jar) do call :setpath %%i And further down in your batch file, you need a label with this code: :setpath set LOCALCLASSPATH=%LOCALCLASSPATH%;%1 YMMV, -Dan _____________________________________________________________________ CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Ansett Australia immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Ansett Australia. ABN Ansett Australia Ltd 37 004 209 410 ABN Ansett International Ltd 72 060 622 460 _____________________________________________________________________
FWIW, I was looking at the lcp.bat file and was scratching my head- I found what it did really convenient but thought it odd that it required a separate file.
Obviously, it seemed to me that what you would expect is
that:
for %%i in (.\lib\*.jar) do call .\lcp.bat
%%i
could be replaced by:
for %%i in
(.\lib\*.jar) do set LOCALCLASSPATH=%LOCALCLASSPATH%;%1
But of
course, someone else would have thought of that, and I see that it doesn't work.
Incidentally, if anyone knows WHY ON EARTH that is, feel free to let me know...
I see the behavior, but can't figure out what is going on.
Anyway, after poking at that, I figured out that the following does work:
for %%i in (.\lib\*.jar) do call :setpath %%i
And further down in your batch file, you need a label with this code:
:setpath
set
LOCALCLASSPATH=%LOCALCLASSPATH%;%1
YMMV,
-Dan
