Thanks it works. I also found that, it works if the dir command is put inside a bat file. Don't ask me why !!
Cheers -----Original Message----- From: Jaroslaw Balut [mailto:[EMAIL PROTECTED]] Sent: 09 April 2002 16:58 To: [EMAIL PROTECTED] Subject: Re: Running java exec() on web service Try to call (if on NT): exec ("cmd.exe /c dir c:\\") Jarek > You probaly need to follows windows conventions and use exec("c:\\dir"); > > And if not that, is dir a file that can run? > > Travis > > ---- Original Message ---- > From: "Chohan, DB (Dharmesh)" <[EMAIL PROTECTED]> > Sent: 2002-04-09 > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > Subject: Running java exec() on web service > > Hi, > > I am trying to run the following command from a java web service file (jws), > on windows > java.lang.Process proc = runtime.exec("c:/dir"); > > I keep on getting "CreateProcess: c:/dir error=2" > > Does anyone know whether exec() commands are supported in axis or know of a > solution. > > Thanks > Dharmesh
