How to transfer file from one server to other server using command prompt?

Advertisement

Jon
Joined:
Posts:
2

How to transfer file from one server to other server using command prompt?

We are trying to transfer file from one server to other server with command prompt script but getting error with the code.
What is correct code or script for server to server file transfer?
We are trying this code
wget/mget sftp://user:user@pass@000.000.00.00:/public_html/index.php
We want transfer a file from our one server to other server using sftp command to automate it but not getting proper code for it.
If anyone knows anything about this transfer please let us know. We are trying to find it from so long time.
Last edited by Jon on 2024-02-12 09:55; edited 1 time in total

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: How to transfer file from one server to other server using command prompt?

That article is about WinSCP GUI.
If you want to automate moving files (transferring – to be exact) between two remote servers from a local machine, then you need to run an appropriate command (like scp/sftp/wget) on one of the servers. That's not really task for WinSCP. You can do it using the call command. But that's an overkill, if you do not use WinSCP for anything else. An ssh or plink are more appropriate tools for executing a command on a remote server.

Reply with quote

Advertisement

You can post new topics in this forum