Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

CmdLineNewb

Thanks

Thanks a bunch, this worked great.
GPalmer

I think this will work for you...

winscp.com UserName:Password@IP_Address /command "get * C:\MyFiles\*" exit
CmdLineNewb

Command Line Download Path

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?