Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

sferrand wrote:

Any idea why?

No idea. You should check server's log or contact your server administrator.
sferrand

Hi,

Any idea why? It overwrote two files prior to the one that failed in the same directory

Thanks,
SteveF[/quote]
martin

After checking the log, I can confirm that your server rejects request to overwrite the file with "Permission denied".
sferrand

Hi,

see attached. It overwrites a couple of files then fails with "permission denied" even though it's got the same permissions to the files it just successfully overwrote.

Thanks!
martin

Re: overwrite remote files using session.putfiles

This has nothing to do with "confirm off".
What is the reason WinSCP cannot overwrite the file?
Complete session log would be helpful.
sferrand

overwrite remote files using session.putfiles

Hi,

There must be a setting for this, but I can't find it.

I'm getting:
Cannot overwrite remote file '/remotepath/myfilename'
Press 'Delete' to delete the file and create new one instead of overwriting it.

It looks like it's possible with scripting "confirm off", but how using the .NET component?

FWIW, I'm using a wildcard for the localPath

Thanks,
SteveF