in reply to Wierd move issue

It could be that the src or dst file is open and locked by another process. You can use Process Explorer (free download from MS) on the server to find if a process has a handle to the file in question.

Replies are listed 'Best First'.
Re^2: Wierd move issue
by sri1230 (Novice) on Feb 25, 2010 at 17:32 UTC
    I checked that nothing is open . I was using foreach earlier and some one told me that its deprecated and had some issues. I changed that to for. And when i use copy followed by unlink the copy works but the unlink does not.

      I was using foreach earlier and some one told me that its deprecated and

      They are wrong. foreach is not deprecated. "for" and "foreach" are two keywords that mean the same thing to Perl.

      I checked that nothing is open .

      Aside from that fact that it's impossible for nothing to be open, how did you determine this?

      unlink does not

      So the file is read-only, or you don't have permissions to delete it, or some process holds a share or delete lock on the file.