Topic "Windows locks an scp file for 6 seconds"

Author Message
dgc

Guest


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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
WinSCP does not lock a file. Maybe it is your antivirus or similar application?
_________________
Martin Prikryl
Kati

Guest


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 Wink

Kati
Guest




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
ful_user

Guest


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

Thanks in advance.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
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/
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License