Hi,
Why don't you try by executing the shell, and passing your bat file as a
parameter to it. By example in NT
String command = "start doit.bat";
p = java.lang.Runtime.getRuntime().exec(command);
andres
johan talla wrote:
> Hi:
>
> This is Johan Talla from Perú, ... i have a problem...
>
> I want to execute a remote file(*.exe), but i can´t because the remote
> machine has installed
> a software that my machine hasn´t it... So, ... my idea is to execute a
> remote file(*.bat).
>
> This sentence is very good, but only execute files(*.exe)...
>
> try{
> java.lang.Process p = null;
> String fileName = "temp";
> String command = fileName;
> p = java.lang.Runtime.getRuntime().exec(command);
> }
> catch(Exception e){
> log("the exception e is:"+e.getMessage());
> }
>
> How can I do to execute files(*.bat)???
>
> A little help from my friend...
>
> Saludos...
>
> Johan A. Talla Anampa
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
--
=============================================
Andres G. Portillo D.
Software Engineer
Veratech (www.veratech.com.mx)
=============================================
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html