CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 1998
    Posts
    23

    Deleting Directories



    Any one know of a way to delete a directory and all its contents

    from VB5. rmdir will only work if it is empty and kill only works on files!??


    HELP!


    christopher



  2. #2
    Join Date
    Nov 1998
    Posts
    23

    Re: Deleting Directories(My Solution!)



    Ah well.. invention being the mother a of invention!? or is that the other way around!??


    it looks like the only solution i was able to come up with myself was the issue a command like so...


    a = Shell("deltree /y " + , 0)


    Where is the name and path of the folder to be deleted.


    Cya..

  3. #3
    Join Date
    Nov 1998
    Posts
    23

    Re: Deleting Directories(Lets try again!)



    Ah well.. invention being the mother a of invention!? or is that the other way around!??


    it looks like the only solution i was able to come up with myself was the issue a command like so...


    a = Shell("deltree /y " + filename$, 0)


    Where filename$ is the name and path of the folder to be deleted.


    Cya..




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

Featured