Re: Batch file execution fails on Win XP with java.io.Exception error=2

2006-01-19 Thread Stefan Bodewig
On Wed, 18 Jan 2006, Ramesh M. <[EMAIL PROTECTED]> wrote: > Where the "somebatchfile" comes from the build file. It does not > have any extension. On executing it on Windows XP I get the > following error Cannot execute C:\somebatchfile: You have to execute cmd.exe in order to run batch files w

Re: Batch file execution fails on Win XP with java.io.Exception error=2

2006-01-19 Thread Jeffrey E Care
Read the manual page for the task; it should give you a hint. -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) Ramesh M <[EMAIL PROTECTED]> wrote on 01/18/2006 07:34:11 AM: > I have the folllowing fragment in an ant extension >

Batch file execution fails on Win XP with java.io.Exception error=2

2006-01-18 Thread Ramesh M
I have the folllowing fragment in an ant extension class. String executable =3D "somebatchfile"; commandline =3D new Commandline(); commandline.setExecutable(executable) Command c =3D new Command(commandline); c.displayPrompt(); c.setDir(testDomain); c.displayMake(); c.run(); Where the "somebatch