title: Determine if Program is Run from CMD or from Explorer
body: <p>In C#, is there a way to determine if program has been run from the command line (CMD.exe) or from explorer (any folder view, etc.)? Thanks.</p>