Results 1 to 4 of 4

Thread: delete a folder

  1. #1

    Thread Starter
    Addicted Member Jakys's Avatar
    Join Date
    Dec 1999
    Location
    Norway
    Posts
    180

    Question I thought this was easy...

    How do you delete a folder? I thought it was easy, but the kill statement can only be used to delete files.

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Location
    India
    Posts
    85
    Dim Fobj As New FileSystemObject
    Fobj.DeleteFolder "c:\MyFolder"

    Try this

    Ramdas

  3. #3

    Thread Starter
    Addicted Member Jakys's Avatar
    Join Date
    Dec 1999
    Location
    Norway
    Posts
    180

    Unhappy Sorry

    Sorry, didn't work...

  4. #4
    Lively Member
    Join Date
    Jan 1999
    Location
    India
    Posts
    85
    Private Sub Command1_Click()
    Dim Fobj
    Set Fobj = CreateObject("Scripting.FileSystemObject")
    Fobj.DeleteFolder "c:\MyFolder"
    Set Fobj = nothing
    End Sub

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