The Artima Developer Community
Sponsored Link

Java Answers Forum
Running MSDOS commands in a java program

2 replies on 1 page. Most recent reply: Sep 12, 2003 1:38 AM by Kevin

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Kevin

Posts: 2
Nickname: mav3r1ck
Registered: Sep, 2003

Running MSDOS commands in a java program Posted: Sep 11, 2003 3:59 AM
Reply to this message Reply
Advertisement
hello..i really need help..could anyone show me a sample code wherein i could run msdos programs in my java application like if i want to run javacor java to compile or execute another java file while im running my application...i know how to open win32 applications using Runtime.exec() but i cant run msdos commands eith it...please help.......thanx in advance...


mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: Running MSDOS commands in a java program Posted: Sep 11, 2003 4:34 AM
Reply to this message Reply
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

Kevin

Posts: 2
Nickname: mav3r1ck
Registered: Sep, 2003

Re: Running MSDOS commands in a java program Posted: Sep 12, 2003 1:38 AM
Reply to this message Reply
tanx for the tip.. i really needed that..anyway,what i did before was create a batch file with the line javac urfile and java urfile and i run it with runtime.exec()....it worked but it hampers the runtime...thanks anyway....

Flat View: This topic has 2 replies on 1 page
Topic: Resizing a window Previous Topic   Next Topic Topic: geometry

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use