I’m having a hard time searching on this one, and I have very limited knowledge of Windows systems.
How can I tell, with reasonable certainty, if the program was run from, say, Windows Explorer (by double-clicking the icon) – or anything that’s not cmd.exe? Any Windows gurus know some way to do this within a Go program?