Simple one line /command to pull down a file

Advertisement

appdevman
Joined:
Posts:
1
Location:
Orange County, CA

Simple one line /command to pull down a file

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?

THANKS!
Klaus Heim

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Simple one line /command to pull down a file

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

Reply with quote

Advertisement

You can post new topics in this forum