deleting folders by executing dos commands in java
Hi all, I tried deleting files , by executing dos command in java.It works perfectly.But i cant delete folders in the same way.Can anyone help me please.Very urgent....Thanks in advanceravisenan
Why not delete the files/directories through Java code? java.io.File provides a delete() method.But if you must, execute the "rmdir" command to remove directories. Type rmdir /? to see the options you can use.