Results 1 to 9 of 9

Thread: [Resolved] how to delete a folder ?

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Location
    XP & Vista
    Posts
    181

    Resolved [Resolved] how to delete a folder ?

    Hello to everyone!

    i used the following code to delete a folder:

    Code:
     
    System.IO.Directory.Delete("c:\test", True)
    if the "test" folder contents, contains normal attributes then no problem in deletion.
    But if it contains Readonly attributes then it shows access dined error in deletion.

    How can i delete a folder forcefully. In vb6 i used fso to delete a folder forcefully, how can i achieve in vb.net???

    Thanks in advance!
    Last edited by kpmsivachand; May 31st, 2009 at 08:59 AM. Reason: Resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width