slloyd has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to tell if a program was run from a command prompt (Windows)? The user could double-click on the program from an explorer window or they might open up a command prompt and run the program from the command prompt. I want to be able to detect how the program was launched. Any ideas?
-------------------------------
Perl - Regularly Expression yourlself
http://www.basgetti.com
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Determining if a program was run from a command prompt.
by Albannach (Monsignor) on Apr 12, 2006 at 15:10 UTC | |
Re: Determining if a program was run from a command prompt.
by BrowserUk (Patriarch) on Apr 12, 2006 at 15:51 UTC | |
Re: Determining if a program was run from a command prompt.
by demerphq (Chancellor) on Apr 12, 2006 at 16:11 UTC |
Back to
Seekers of Perl Wisdom