Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Running an batch file under java

843798Aug 2 2001 — edited Dec 6 2001
HI- I created a batch file to do various commands. However, every time I try to run it using:

Runtime.getRuntime.exec( BAT );

BAT being the path name and batch file in a String.

I get an IOException. Is there a way to run another command prompt in the VM so I can run my batch file? Thanks

Seigot
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 3 2002
Added on Aug 2 2001
9 comments
665 views