Results 1 to 3 of 3

Thread: Delete folder

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Post

    How can i delete a selected folder in a DirList Box???

    i have tried RmDir Dir1.Path
    No go!


    ------------------
    Yours sincierly
    CyberCarsten
    http://homee18.inet.tele.dk/cyber/
    carsten.h.thomsen@mail.tele.dk

  2. #2
    Guest

    Post

    You can use FileSystem Object.
    Add a reference to Microsoft Scripting Runtime Library. Then use use:

    Dim oFS As New FileSystemObject
    oFS.DeleteFolder "C:\MyFolder"

    Note: You would have to include scrrun.dll with your project after you compile it.

    Thanks goes to Surge for this nice peice of work..


    ------------------
    John T. Mieske
    Star Trek LCARS programmer

    Knight Vision Enterprises
    kvision@gate.net

  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    RmDir only works when the folder is empty

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