Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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
TimU

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