Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can a C# Windows Console application tell if it is run interactively

How can a Windows console application written in C# determine whether it is invoked in a non-interactive environment (e.g. from a service or as a scheduled task) or from an environment capable of user-interaction (e.g. Command Prompt or PowerShell)?

like image 773
Jeff Leonard Avatar asked Jul 27 '09 14:07

Jeff Leonard


People also ask

Can I recharge my car AC myself?

Topping off a car ac system can usually put you back in the deep freeze. That's a job you can do yourself if your vehicle was made after 1993 and is filled with R-134a refrigerant (check the label under the hood or the specifications section of your owner's manual to be sure).

How does AC make air cool?

As the liquid refrigerant inside the evaporator coil converts to gas, heat from the indoor air is absorbed into the refrigerant, thus cooling the air as it passes over the coil. The indoor unit's blower fan then pumps the chilled air back through the home's ductwork out into the various living areas.


1 Answers

Environment.UserInteractive Property

like image 138
Arsen Mkrtchyan Avatar answered Sep 21 '22 16:09

Arsen Mkrtchyan