From: Kirk Haines Date: 2011-02-09T00:36:53+09:00 Subject: Re: "permission denied" happening too often On Tue, Feb 8, 2011 at 8:28 AM, Jeremy Bopp wrote: > On 2/8/2011 8:45 AM, Kirk Haines wrote: >> The nutshell here is that something -- possibly the virus scanner or >> possibly some other software -- is touching the file when your script >> runs, altering the permissions such that your script can't do what >> it's trying to do. > > Just to be clear.  It's not that something is changing the ACLs on the > file or anything.  Rather, a file or directory that is in use by another > program cannot be removed or relocated on Windows without some ugly > trickery.  This is a limitation of Windows itself. Right. I was just being intentionally general in my phrasing, since the advice is applicable to anyone writing code to move files around, regardless of OS. Kirk Haines Unhandled exceptions are ugly. Make the world more beautiful, and handle yours today.