Announcement

Collapse
No announcement yet.

Folder.DeleteTree > "could not delete base folder"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Folder.DeleteTree > "could not delete base folder"

    Ive got somthing strange going on. I use Folder.DeleteTree to remove this folder on my system C:\Users\Jules\Desktop\Destination 1\VJplayer\VJplayer application\AutoPlay\Plugins

    Application.GetLastError gives me this error directly after the call for Folder.DeleteTree:
    "could not delete base folder"

    Any help is appreciated. :yes

    #EDIT 1
    The folder exists and Folder.Exists returns true. So the folder realy is there...

  • #2
    Update > Possible bug.

    Side info:
    My program copy's folders and files from A to B and zips them on B.
    When it's done zipping it deletes the files on B. Except the zip file of course.

    The folder can't be deleted based on 2 conditions!
    I that's the last folder that needs to be deleted.
    If that folder contains the folders Autoplay > Plugins.

    Is this a known bug?

    Comment


    • #3
      Do you use any plugins in that application? If so, they are loaded and cannot be removed.
      Bas Groothedde
      Imagine Programming :: Blog

      AMS8 Plugins
      IMXLH Compiler

      Comment


      • #4
        Nope

        Thanks for your reply!

        Nope, no plugins loaded. They are just folders without files. No files in them.

        Comment


        • #5
          Possibly you are attempting to delete your current folder, check with Folder.GetCurrent(). You may be unable to delete the current folder, as it is in use. Move to a different folder with Folder.SetCurrent() first, then try again.

          Ulrich

          Comment


          • #6
            Thank!

            Thanks Ulrich. That solved it! You where right!

            Comment

            Working...
            X