开发者

starting my console application at background

开发者 https://www.devze.com 2023-01-08 17:46 出处:网络
My client wanted my C# console application which runs Internet Explorer, to start work as a background window pl开发者_开发问答us the Internet Explorer window that watin opens to be on background.

My client wanted my C# console application which runs Internet Explorer, to start work as a background window pl开发者_开发问答us the Internet Explorer window that watin opens to be on background. I use Visual Studio 2005 and watin ver. 2.0.20.1989. Any answer how can I do this?


You don't even need to program anything to accomplish this. There's a command line that you can use:

start /min YourExecutable.exe

No need to write anything in your program at all. This will start any regular console application in the background as a minimized window. See the full documentation for start for more fun options.

0

精彩评论

暂无评论...
验证码 换一张
取 消