08-20-2004, 03:37 PM
i mean to know if an executable was activated by clicking from the Windows explorer or from an already dos session? (being Windows loaded, naturally)
i think this would be useful for including code in an executable to close the Dos window when was clicked from the explorer or to stay in the command line after finishing when was activated from the prompt (without parameters)
is there a way to know that?
also i tried SHELL"Set" but the line 'CmdLine=' it's not shown only it can be shown from Dos prompt, why only from the Dos prompt?
i think this would be useful for including code in an executable to close the Dos window when was clicked from the explorer or to stay in the command line after finishing when was activated from the prompt (without parameters)
is there a way to know that?
also i tried SHELL"Set" but the line 'CmdLine=' it's not shown only it can be shown from Dos prompt, why only from the Dos prompt?