Hi all,
 
the os.name returned by java on W2K is "Windows 2000". There's no more "nt" token in this property. I think the Exec task should test if "nt" token is present or if "2000" is present:
 
(...)
 
   if (myos.toLowerCase().indexOf("nt") >= 0 || myos.toLowerCase().indexOf("2000")) {
 
(...)
 
Alain Origlia
 
CALENDRA
135, rue du Dirigeable
ZI Les Paluds
13783 AUBAGNE Cedex
Tel: 04 42 18 69 90
 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/IT/MU d- s-: a C+++$ UL P++ L+ E(-) W++ N@ o? K- w(++) !O
!M !V PS+ PE++ Y PGP- t 5? X+ R tv- b+ DI++ !D G e+++ h---- r+++ y+++
------END GEEK CODE BLOCK------