Results 1 to 2 of 2

Thread: Delete directory and contents

  1. #1

    Thread Starter
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Youc can use FileSystem Object.


    Add a reference to Microsoft Scripting Runtime Library. Then use use:

    Code:
        Dim oFS As New FileSystemObject
        
        oFS.DeleteFolder "C:\MyFolder"
    Note: You would have to include scrrun.dll with your project after you compile it.

    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]
    ICQ#: 51055819



    [This message has been edited by Serge (edited 12-01-1999).]

  2. #2
    New Member
    Join Date
    Nov 1999
    Posts
    10

    Post

    We need to delete a directory and all its contents from within VB. This needs to be done without the user having to answer any prompts eg. Are you sure you want to delete this directory and all its contents?

    Can anyone offer any pointers.

    All help appreciated.

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