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