java.lang.Runtime.exec(String) allows you to execute an external program.
This method returns a Process object, which supports getExitValue().
Hope have helped you somehow...
> -----Mensaje original-----
> De: Mohammad Jamous [mailto:mjamous@n...]
> Enviado el: sabado, 26 de mayo de 2001 10:00
> Para: Professional Java
> Asunto: [pro_java] Can I run dos command from java ?????????????????
>
>
> Hi there
> my problem is that I want to deal with perl in java , I mean that
> I want to
> exec command on dos editor,
> and this command will return a value , so there are a way to solve that or
> not ?????????
>
> Best Regards
> M. Jamous
>
>
>