Winscp run without opening cmd window

Advertisement

Guest

Winscp run without opening cmd window

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.:)

Reply with quote

TimU
Joined:
Posts:
25
Location:
Sydney

Re: Winscp run without opening cmd window

Simple: don't include the "/command" switch when you call your script.

eg:
winscp /script=%SFTP.batch.script% /log="%TextTransferLog%" /xmllog="%XMLTransferLog%"

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
Location:
Prague, Czechia

Re: Winscp run without opening cmd window

TimU wrote:

Simple: don't include the "/command" switch when you call your script.
Almost :) 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

Reply with quote

Advertisement

You can post new topics in this forum