Topic "run winscp command line in hidden mode"

Author Message
akashneelh

Guest


Hi Guys,

Can you please help solving an issue.
I have installed winscp command line in my system and made a script to copy files from a sftp site using windows scheduler. Can anyone help me how the console window can be run in silent mode (in background) ?

My code..


option confirm off
open sftp://goodbuyc@66.226.77.49 -hostkey="ssh-rsa 2048 d1:17:b8:4c:59:3a:96:36:84:6b:bf:df:76:18:c8:2c"
option transfer binary
cd /home/goodbuyc/public_html/live_sale/temp
lcd E:\Live_sale_Automation
get *.*
close
Exit WinSCP
exit
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Use winscp.exe (not winscp.com) without /console switch.

See
http://winscp.net/eng/docs/executables
http://winscp.net/eng/docs/commandline#scripting
_________________
Martin Prikryl
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License