Deleting a folder

  • Thread starter Thread starter BobRoyAce
  • Start date Start date
B

BobRoyAce

I am using Visual Studio .NET 2005 to create a Windows Forms
application. I know that I can use My.Computer.FileSystem.DeleteFile to
delete a file. How do I delete an empty folder/directory though? How
could I delete a folder that wasn't empty?
 
BobRoyAce said:
I am using Visual Studio .NET 2005 to create a Windows Forms
application. I know that I can use My.Computer.FileSystem.DeleteFile to
delete a file. How do I delete an empty folder/directory though? How
could I delete a folder that wasn't empty?

'My.Computer.FileSystem.DeleteDirectory'.
 
Yea, that would make sense...thanks. I looked for DeleteFolder...never
even looked for DeleteDirectory!
 
Back
Top