Topic "Windows thinks WinSCP uploads are locked"

Author Message


WinSCP 4.1.9
Windows XP Home SP3 (Client) / Windows Server 2003 SP2 (Server)
# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
# open
# Connect
open [username]:[password]@[server].[domain].com
# Force binary mode transfer
option transfer binary
# chdir to local uploads folder
lcd C:\uploads
# chdir to remote uploads folder
cd /cygdrive/c/inetpub/ftproot/[user's directory]
# Upload files
put -delete *.tif
# Disconnect
# Exit WinSCP
Laserfiche Import Agent generates this Windows Event Viewer Error Message (on server) when it tries to move the file: 'The file "C:\inetpub\ftproot\[user's directory]\[filename.tif]" is locked.'
Even though Event Viewer says that the files are locked, the files can still be opened, moved, edited, etc. We encounter this error message with approximately 10-40% of WinSCP uploads. We also use RoboFTP for some transfers, and those come through without error - this issue has been isolated to WinSCP uploads.

Thanks in advance for any input!
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
Can you try the same with WinSCP 4.2.5?
Martin Prikryl


Thank you for the response! I will try that.

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License