Le 3 janv. 07 à 16:10 Soir, Youri a écrit:

Hi,


I use the code from the User's Guide to move a folder (and all inside folders and files) into another folder on the disk.

But at the end, I want to delete the moved folder from the originating place. Therefore I have used :

a.delete

Where "a" is my source folderitem

The system returns an error code 104 (file in Use).

Any hint, or solution to be able to delete the "a" folderitem?

If your original folder still exists, then you're making a copy, not a move.

Also, in order to delete a folder, you have to make sure it is empty (for the file system, deleting a folder means not deleting something else, therefore it must be empty). Every time you copy the files, you then call delete. At the end, when a folder is empty, you can delete it. Note that using CopyFileTo and then Delete should be equals to MoveFileTo (you may move the items rather than copying them).

HTH_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to