Topic "Winscp run without opening cmd window"

Author Message
Guest




I wrote a script (batch file) to download files from my sftp server to a local directory. It does the task, but opens a command window. How do I get it to run without opening a command window.

Thanks.Smile
TimU
[View user's profile]

Joined: 2012-01-30
Posts: 25
Location: Sydney
Simple: don't include the "/command" switch when you call your script.

eg:
winscp /script=%SFTP.batch.script% /log="%TextTransferLog%" /xmllog="%XMLTransferLog%"
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
TimU wrote:
Simple: don't include the "/command" switch when you call your script.

Almost Smile It's /console argument that needs to be omitted. Also make sure you are running winscp.exe, not winscp.com. For winscp.com the console cannot be suppressed.
https://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