Topic "Move a file to remote server"

Author Message
sunilt@...

Guest


Hi,
Firstly, thank you very much for this wonderful tool, do you have a command that moves file from local server to remote server?
I am new to WINSCP, would appreciate if you can send me the complete script

Thanks once again bro
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Use put -delete X:\path\local_file.xxx /target/remote/path/
See
http://winscp.net/eng/docs/scriptcommand_put
http://winscp.net/eng/docs/guide_automation

Last edited by martin on 2015-02-26; edited 1 time in total
KAS

Guest


Use put -neweronly X:\path\local_file.xxx /targe/remote/path

/targe/ ---- are you sure it's not spelled wrong?

Ok I'm really a noob here. I'm needing to push multiple files. The connection to the remote sever is made in SCP and have successfully transferred files. I'm needing use the above to push all those files as they are updated. The name of the files need to be the same name as it is. Not clear on where to input this into the SCP.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
I've forgot trailing slash:

put -neweronly X:\path\local_file.xxx /targe/remote/path/

For all files in source directory:

put -neweronly X:\path\* /targe/remote/path/
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License