Using WinSCP version 4.2.4 build 610
Origin OS: windows 2003 SP2
Destination FTP server: Windows 2000 and IIS FTP server
Using scripting automation
error message:
> 2009-11-05 17.01.04.666 CWD /test/directory/
< 2009-11-05 17.01.04.666 250 CWD command successful.
....
> 2009-11-05 17.01.04.853 RMD /test/directory/
< 2009-11-05 17.01.04.853 550 /test/directory: Impossibile accedere al file. Il file è utilizzato da un altro processo.
. 2009-11-05 17.01.04.853 Asking user:
. 2009-11-05 17.01.04.853 Error deleting file '\test\directory'. ("/test/directory: Impossibile accedere al file. Il file è utilizzato da un altro processo. ")
. 2009-11-05 17.01.04.853 Disconnected from server
this happen during the execution of the command:
synchronize remote -mirror -delete c:\test\directory /test/directory
It seems that windows 2000 server and IIS does not allow to delete the directory if the directory is still in use by a user process.
This lock happen every time because it is winscp that does the
CWD
command to the directory it has to delete and does not change the directory before trying to delete it.
In fact, issuing the
RMD
command after WinSCP has run, with the exact same directory does delete the directory correctly.
Let me know if you need more info.