Thanks Robert.
I have recognized that different combinations of arx files are loaded depending on how the task is started, but it is not 100% secure.
Code:
(cond
((and (not (member "acmgdinternal.dll" (arx) )) (not (member "aecstartup47.arx" (arx) ))) (princ "AutoCAD 2006 started from DT Icon" )(princ) )
((member "acmgdinternal.dll" (arx) ) (princ "AutoCAD 2006 started from Explorer" )(princ) )
((and (member "aecstartup47.arx" (arx) ) (not (member "units.arx" (arx) ))) (princ "ADT 2006 started from DT Icon" )(princ) )
((member "units.arx" (arx) ) (princ "ADT 2006 started from Explorer" )(princ) )
(t nil)
)
I have to investigate further....
: ) Happy Computing !
kennet