Help with Transfer/Sync script.

Advertisement

Woopster
Guest

Help with Transfer/Sync script.

open ftp://***************:%********************/
 
lcd \\*********\kfslan\fra_kmd\Tandpleje
cd /
 
put *
exit
 
# Execute the script using a command like:
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\writable\path\to\log\WinSCP.log" /ini=nul /script="C:\path\to\script\script.txt"
I have this script that transfers a file every weekend to a 3rd party FTP. Is there anyway that I script can overwrite existing files on remote FTP or delete those already there?

Our user has permissions to delete on the remote FTP.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
34,943
Location:
Prague, Czechia

Re: Help with Transfer/Sync script.

The script will overwrite existing files on remote FTP. Do you have any actual problem?

Reply with quote

Guest

Re: Help with Transfer/Sync script.

Then I didn't describe it enough, my bad.

The files has a new name everyweek so it doesn't overwrite. it just adds the file.

Like in the picture. I want it to delete/overwrite the old ones.

FTP.jpg

Reply with quote

Advertisement

You can post new topics in this forum