Does anyone know how to delete folders in VB.NET

  • Thread starter Thread starter Omega Warrior
  • Start date Start date
O

Omega Warrior

The folder is C:\test and the folder is full with files, i need a code
that lets me delete that folder and all of its files?



And a little a side question... How to call a function. For example:



Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

call... (just to call that function that is jsut to run that function...)



Thank you very much!!!!
 
Basically, you have to delete all the content in the folder first. Once you
delete the files, you can delete the folder. There's no way around this.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition
 
Back
Top