Topic "Command Line Download Path"

Author Message
CmdLineNewb

Guest


Greetings all,

I've done a couple of searches for this, but I havent seen any hits that are close to my issue. What I'd like to do is to launch WinSCP from the command line with the SFTP target and then download all the files I find there to the local machine. I am NOT looking to synchronize or keep up to date the remote location.

What I was doing was "winscp.exe sftp://user:password@remote.com/filedirectory C:\MyFiles" but this doesnt seem to do anything. I'm trying to use it as part of a batch command list to get all of the contents on the remote server every time the batch runs. Is this possible?
Advertisements
GPalmer
[View user's profile]
Donor
Joined: 2008-05-13
Posts: 10
I think this will work for you...

winscp.com UserName:Password@IP_Address /command "get * C:\MyFiles\*" exit
GPalmer
[View user's profile]
Donor
Joined: 2008-05-13
Posts: 10
Here are a couple more useful links

http://winscp.net/eng/docs/scripting
and
https://winscp.net/eng/docs/guide_automation
and
http://winscp.net/eng/docs/scripts
CmdLineNewb

Guest


Thanks a bunch, this worked great.
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