This question already has an answer here:
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.
This question already has an answer here:
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.