Topic "Session.MoveFile force the move?"

Author Message
[View user's profile]

Joined: 2017-05-31
Posts: 6
When using Session.MoveFile, I sometimes get an error 4 caused by an attempt to move the file when a file of the same name already exists.

Is there a way to always overwrite the existing file?

Thank you.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27059
Location: Prague, Czechia
No. You have to check yourself and delete the offending file.

You can post new topics in this forum


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