Topic "Simple one line /command to pull down a file"

Author Message
[View user's profile]

Joined: 2009-01-17
Posts: 1
Location: Orange County, CA
I'm new to this client, but not new to FTP in general.

I am building a c# application that will essentially just run ONE command-line entry, to pull down a file.

This is what I have so far, but it just wont work: (I put placeholders <private> where necc)

winscp SFTP://<private>:<private>@<private> /command get /Download/BIN/BIN20081107.txt exit

Using console i get this to work fine. I can't get it to work with one simple command though.

Also, can I use a UNC path as a target path for the destination?
I assume that would be right after the file location path, before exit?

Klaus Heim
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
It would help if you post output of the console.

Anyway, first obvious problem is quoting of the commands. This may work:
winscp SFTP://<private>:<private>@<private> /command "get /Download/BIN/BIN20081107.txt" exit
Martin Prikryl

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License