Subject: Can't Programatically Delete CD Folders
Posted By: wolfie62676 Post Date: 1/26/2005 11:37:15 AM
I recently wrote a small tool to remotely manage my cd and mp3 collection (yes, all legal, I have the cd's to prove it).  The strange part is when I use any delete method on folders that were created my Windows Media Player 10's "Rip" option, it throws a can not access error.

I checked all the permissions, and gave Everyone/Full Control to see if it was a permissions issue, and it isn't.  It will delete the contents of the folder, but not the folder itself.  I tried a restart, and still nothing.  I also copied the folder from the My Music directory to the library location, so it is something that is copying along with the folder.  I can recreate the folder, move the contents, and it works fine.  I can also delete the folder in explorer with no problems.  I also tried impersonation with Administrator, and nothing, I am out of ideas.

Any idea what would be creating a lock on these folders and how to remove it?

The app is writen in C#/ASP.NET, using standard System.IO stuff.  Haven't tried writing a standard asp solution.  I hate coding in vbscript now that C# is around.

Reply By: Hal Levy Reply Date: 4/27/2005 6:57:43 PM
Old Old Old.. but no answer....

Did you make sure there are no hidden/system files that the rights were not changed on?


Hal Levy
I am here to help you, not do it for you.
That is, unless you hire me. I am looking for work.

Go to topic 29760

Return to index page 566
Return to index page 565
Return to index page 564
Return to index page 563
Return to index page 562
Return to index page 561
Return to index page 560
Return to index page 559
Return to index page 558
Return to index page 557