Hi,
> pp=run.exec("D:\\EAServer_v4_Developer\\SilentInstall_Win.bat");
A Batch-file is nothing that is "executable". But the shell is able to
read and interpret it (that's what happens when you double-click on it -
so it *seems* as if it were executable). That is similar to what happens
when you double-click on any other file: The fact that double-clicking
on a ".doc"-file causes Word to start and to open the file does not mean
that ".doc"-files are "executable".
That is the long answer. The short one is: Try something like the following:
pp=run.exec("cmd.com /c D:\\EAServer_v4_Developer\\SilentInstall_Win.bat");
Hth,
Ingo
Jeff Kish - 13 Jul 2006 15:05 GMT
>Hi,
>
[quoted text clipped - 13 lines]
>Hth,
>Ingo
fyi.. I think 'cmd.exe' might be usable, but not 'cmd.com' as I don't think
that always exists... probably windows version dependant.
Jeff Kish
rynox - 14 Jul 2006 02:16 GMT
hi ingo,
i have tried this the line u told me > >
pp=run.exec("D:\\EAServer_v4_Developer\\SilentInstall_Win.bat"); but it
seems that i get an error when i execute it. is there any other java
classes that is able to run .bat files.
thanks.
> Hi,
>
[quoted text clipped - 13 lines]
> Hth,
> Ingo
rynox - 14 Jul 2006 04:25 GMT
hi guys
i tried this :
String line = "cmd.com /c
D:\\EAServer_v4_Developer\\SilentInstall_Win.bat";
Process pp=run.exec(line);
but now i face error 2 when it loads that line. ive seen many forums
also that state this is the line to call batch files but it just
doesnt work. am i missing some parameters there ? please advice.
thanks.
> hi ingo,
>
[quoted text clipped - 22 lines]
> > Hth,
> > Ingo
Jeff Kish - 14 Jul 2006 14:08 GMT
>hi guys
>
[quoted text clipped - 7 lines]
>
>thanks.
<snip>
Try cmd.exe instead of cmd.com.
Look on your system in your windows directory and see if you have a cmd.com..
you probably don't.
See if you have cmd.exe? you probably do.
Regards, and HTH
Jeff Kish