Deleting Folders With VB

How can you remove a folder which contains files and other folders.  Is it possible to delete these all at once if you know the path to the files and how?
Who is Participating?
slobstarConnect With a Mentor Commented:
You will have to remove them seperatly!

RmDir path             'for the folders
Kill path              'for the files

Kill "c:\new\*.*"      'delete all files in the new folder

Just write a small function to read through your filesystem and delete whatever you want to delete...

Good Luck!

syeAuthor Commented:
I was hoping there was a way to delete them all at once same as deleting a folder in explorer

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.