Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #5670
| Date | 2011-06-25 13:38 -0700 |
|---|---|
| From | Patricia Shanahan <pats@acm.org> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: runtime.exec problems |
| References | <fe03d675-dca9-40aa-ad12-99dd0cc75cfb@fj19g2000vbb.googlegroups.com> |
| Message-ID | <z6ednYROv_bE2pvTnZ2dnUVZ_jidnZ2d@earthlink.com> (permalink) |
On 6/25/2011 10:58 AM, Memo wrote: > I can't get runtime.exec to execute a program in Java. I am trying to > execute a bat file. I read that in order to run bat files as opposed > to .exe files the runtime command has to include "cmd /c start" before > the name of the bat file. I have run bat files successfully this way > before. > > The command that I am running works when typed from the command line. > It is: > > z:/n4/pkg/MrServers/MrVista/Simu/StartSimEnv.bat -AutoStart > GOLD_256x512.dat ... The next thing to do is to write a simple .bat file that just echos its parameters. Substitute it for StartSimEvent.bat, and see what is really getting passed. Work at that until it is getting exactly the parameters you want to pass to StartSimEvent.bat. Patricia
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
runtime.exec problems Memo <gamalieli@hotmail.com> - 2011-06-25 10:58 -0700 Re: runtime.exec problems Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-06-25 16:09 -0400 Re: runtime.exec problems Patricia Shanahan <pats@acm.org> - 2011-06-25 13:38 -0700 Re: runtime.exec problems Roedy Green <see_website@mindprod.com.invalid> - 2011-06-25 13:54 -0700
csiph-web