You could try this to send an "A
" to sftpc
:
start cmd /k "echo A | sftpc [SERVERNAME] -pk=1"
I don't have sftpc
and am just trying a suggestion to help out...
Updated:
If you have multiple commands to give to sftpc
, you may find that one of the following methods works, depending on how sftpc
works - I am working blind here - still don't have, or want, sftpc.
start cmd /k "echo A & echo cd somewhere & echo get *.* | sftpc [SERVERNAME] -pk=1"
... change "somewhere" to wherever you want to go to.
Or maybe:
Save the following in a file called ftp.cmd
A
cd somewhere
get *.*
Then try:
start cmd /k "sftpc [SERVERNAME] -pk=1 < ftp.cmd"