Rename File - Overwrite Existing

Advertisement

Yellow
Joined:
Posts:
5

Rename File - Overwrite Existing

Hi

In .net is it possible to rename a file and if that file already exists, overwrite it automatically?

Cheers

Reply with quote

Advertisement

Yellow
Joined:
Posts:
5

Hi

Thanks for the reply. Basically I want to upload a file name 'MyFile'. Then rename it to 'MyNewFile'. If 'MyNewFile' already exists, then have an option to overwrite the existing 'MyNewFile'.

I realise I can delete the existing file first, that's not a problem. But I found this thread, which suggests such a rename feature exists, unless I am not understanding it: https://winscp.net/forum/viewtopic.php?t=25

Cheers

Reply with quote

Advertisement

You can post new topics in this forum