Upload Files and give them a different Name on FTP - via command line on windows

Advertisement

mheubach
Joined:
Posts:
1
Location:
Germany

Upload Files and give them a different Name on FTP - via command line on windows

Hi there,
i would like to upload - via command line on windows - a file for example "aaaaa.txt"
andon the ftp server it should have the name "bbbbb.txt"

I don't want to duplicate or rename files on my local storage before upload!

I didn't find an example on your page!

regards
Matt

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
33,467
Location:
Prague, Czechia

Re: Upload Files and give them a different Name on FTP - via command line on windows

If you are using WinSCP scripting, then you can specify the target file name in second argument of the put command:
put "C:\local\path\aaaaa.txt" "/remote/path/bbbbb.txt"
https://winscp.net/eng/docs/scriptcommand_put

Reply with quote

Advertisement

You can post new topics in this forum