This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I agree with Paul. Would it not be easier to use the classes in the java.io package?
Furthermore, by going this route, you won't be platform independent anymore -- the application would require the DOS commands. With the java.io package, it would work on any platform supported by Java.
But why? What does the console give you which you need over and above IO via Java? It seems you are possibly creating work for yourself.
Joined: Mar 19, 2008
Please look at the code below, I Used java.io package, but I don't get what you are suggesting with that
while executing the above code, When the controller comes to stdInput.readLine() (To display the output), the process is struck and cannot move from there.
I blocked the while loop and executed, the process is done but file is not deleted.
Could you please suggest me with your java.io knowledge how to del file/folder?