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
[222 byte] By [ravisenana] at [2007-10-3 1:18:44]
# 1
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.
Herko_ter_Horsta at 2007-7-14 18:15:53 > top of Java-index,Desktop,Developing for the Desktop...
# 2
Hi Horst,Your suggesstion worked well.Thanks a lot.RegardsRavisenan
ravisenana at 2007-7-14 18:15:53 > top of Java-index,Desktop,Developing for the Desktop...