hide console window while using WinSCP in batch mode

Advertisement

ovm
Joined:
Posts:
1

hide console window while using WinSCP in batch mode

Hi,

i'm using WinSCP in a C# Application. This app creates a new process that runs the WinSCP Client in console mode. The output (info and error) is redirected asynchronously to the c# app that handles the output,either logging it or using the output directly.

Question: Is it possible to hide the console window?

Greetings & thanks in advance
ovm

Reply with quote

Advertisement

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

Re: hide console window while using WinSCP in batch mode

I do not know C#. Providing there is counterpart for C ShellExecute function, it has parameter SW_HIDE. Note that it would work only if you execute winscp.com, not winscp.exe.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum