Topic "How to move a file from server to local machine"

Author Message
[View user's profile]

Joined: 2007-06-07
Posts: 1
Location: Glen Mills, PA
I need to move(copy and then delete) all the *.XML files from a directory on a remote secure FTP server to a local Server. I can do this interactively using WinSCP. WinSCP saves the connection session. I would like to automate the connection, transferring of files and logging off by using a batch file.
I have reviewed the information on the Putty download page but I cannot determine if I should be using PSCP or Plink or something else.
I reviewed many previous post but could not find this basic of a question addressed. Could you provide a link if it was covered previously? Is there thorough tutorial somewhere else? Or could you please give a sample command line that would do this?
Thanks in advance for you help.


Remote server:
Directory on the remote server: Incoming
Files to Move: *.XML
Destination: M:\New
UserName: Pat
Password: pwd
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
WinSCP 3.1 (coming out soon) will allow moving files (copying and deleting source) to local computer from remote server in scripting.
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License