Topic "How to run commands from "standard input" using a .bat file?"

Author Message
[View user's profile]

Joined: 2009-04-15
Posts: 1
Location: Berkeley, CA
I'd like to invoke winscp from a Windows .bat file, and have it execute the remaining lines in the file. Sample .bat file:

winscp /console <some syntax to say input from stdin>
open <a connection>
get <some files>

But instead of reading the lines in the .bat file, it opens a command window and prompts for a command.

Is there a way? (as this can be done with most FTP command line clients)

Thanks in advance.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
I do not think this is possible.
What FTP clients do support that? Because if some do, than WinSCP does as well using the same syntax. As interpreting .bat file is done by Windows.
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