posted 21 years ago
Hi,
It can be done but typically "- insert anti - Microsoft comment here -".
This will work on Windows 2000 machines. I have not tested it on anything else but I would imagine it should work on XP too.
First you need to make sure that Command Extensions and Delayed Expansion are enabled in your command shell. To do this make sure that the
following entries in your system registry (use REGEDT32 to check) are present and enabled (set to value 0x1).
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\DelayedExpansion
and
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\EnableExtensions
(You can also use a switch when running CMD.EXE to do this "CMD /E:oN /V:oN").
Once this is done the following script will do the same as the linux/unix script.
FOR %%I IN (*.jar) DO (
SET CLASSPATH=!CLASSPATH!%%~fI;
)
Hope this helps.
[ edited to disable the smilies -ds ]
[ June 21, 2003: Message edited by: Dirk Schreckmann ]