I am using winscp.com 126.96.36.1995. I am using it via a Java program to access files on a secure AIX server, and then display them in a Swing GUI on an XP desktop. I have no problem getting the files, and putting them back.
The problem is that even if the file is very small (1K) there is a ALWAYS a 6 second minimum delay AFTER the winscp.com script completes, and before Windows allows me to read the file.
I execute a command such as "winscp.com user:pswd@server /script=..." see below:
option batch on
option confirm off
cd /some directory
get filea filea
Does winscp have the file locked? Or does Windows?
The file appears to be immediately available on the AIX server.
I found the key to the file lock problem. The file was read in a previous step by another application. That application did not close the file properly. Because of this improper close, Windows believed that the file was locked.
My recommendation: check for the previous steps in your applicaiton and make sure your file is closed properly after it has been opened for read or write prior to FTP transfer.