Windows locks an scp file for 6 seconds

Advertisement

dgc
Guest

Windows locks an scp file for 6 seconds

I am using winscp.com 4.1.8.415. 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
exit
Does winscp have the file locked? Or does Windows?
The file appears to be immediately available on the AIX server.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: Windows locks an scp file for 6 seconds

WinSCP does not lock a file. Maybe it is your antivirus or similar application?
_________________
Martin Prikryl

Reply with quote

Kati
Guest

FTP transfer locking the transferred file

I am still using windows FTP. The file is sometimes - not always - getting locked after the FTP transfer and cannot be deleted. This locking problem is definitely not a WinSCP side effect.

I use windows FTP from a program invoked as a batch command. This is how I shall use Winscp as well. I was hoping WinSCP has a solution for this problem, too ;)

Kati

Reply with quote

Guest

File locked after WinSCP transfer

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.

WinSCP is apparently innocent in this.

I hope this helps,

Kati

Reply with quote

ful_user
Guest

can anyone send a link to download WinSCP 4.1.8.415? Thanks

can anyone please send a lik to download WinSCP 4.1.8.415 in the comments?

Thanks in advance.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: can anyone send a link to download WinSCP 4.1.8.415? Thanks

ful_user wrote:

can anyone please send a lik to download WinSCP 4.1.8.415 in the comments?
While you can download any version of WinSCP from a link below, you really should not use old versions as they suffer security and other bugs.
https://sourceforge.net/projects/winscp/files/WinSCP/

Reply with quote

Advertisement

You can post new topics in this forum