D
Dilip
Hi All
I have a server based C# console application. This application must
hide its console window when its launched out on the field. So I
dutifully P/Invoke'd FindWindow/ShowWindow combination to hide the
console window at launch time.
The application (for legacy reasons) hangs around by waiting on an old-
fashioned Console.ReadLine() statement.
How can such an application be terminated externally? By externally I
mean via a batch file or script or some such? Launching is the easy
part. How does a hidden console window recieve keyboard input so that
the shut down code can execute?
Or am I going about this the wrong way?
I have a server based C# console application. This application must
hide its console window when its launched out on the field. So I
dutifully P/Invoke'd FindWindow/ShowWindow combination to hide the
console window at launch time.
The application (for legacy reasons) hangs around by waiting on an old-
fashioned Console.ReadLine() statement.
How can such an application be terminated externally? By externally I
mean via a batch file or script or some such? Launching is the easy
part. How does a hidden console window recieve keyboard input so that
the shut down code can execute?
Or am I going about this the wrong way?