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.
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?