• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

How to delete a Windows directory?

Dear Experts,

Anyone know how to delete a Windows directory using Java?

Thanks,
BrianMc1958
0
BrianMc1958
Asked:
BrianMc1958
  • 2
1 Solution
 
CEHJCommented:
new File("somedir").delete();
0
 
BrianMc1958Author Commented:
Thanks.
0
 
CEHJCommented:
:-)

Bear in mind it's got to be empty for that to work
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now